diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-03-25 16:59:21 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-03-25 16:59:21 (GMT) |
commit | fe17b2bc77851be1724f9ce2ea07112a06f413ab (patch) | |
tree | b9d680161ce00c04d494062d66410f321d3f83cb /Lib/site-packages | |
parent | 1d5617958fa4e3e1039c62cbe15565e642a9e428 (diff) | |
download | cpython-fe17b2bc77851be1724f9ce2ea07112a06f413ab.zip cpython-fe17b2bc77851be1724f9ce2ea07112a06f413ab.tar.gz cpython-fe17b2bc77851be1724f9ce2ea07112a06f413ab.tar.bz2 |
Raise MemoryError instead of InvalidOperation/MallocError for compatibility
with decimal.py. The standard specifies InsufficientStorage (MallocError) as
a sub-condition of InvalidOperation. This allows a calculation to continue
with NaN results when allocation fails.
Diffstat (limited to 'Lib/site-packages')
0 files changed, 0 insertions, 0 deletions