[New-bugs-announce] [issue7047] decimal.py: NaN payload conversion
Stefan Krah
report at bugs.python.org
Sat Oct 3 15:46:49 CEST 2009
New submission from Stefan Krah <stefan-usenet at bytereef.org>:
decimal.py sets InvalidOperation if the payload of a NaN is too large:
>>> c = getcontext()
>>> c.prec = 4
>>> c.create_decimal("NaN12345")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/decimal.py", line 3797, in create_decimal
"diagnostic info too long in NaN")
File "/usr/lib/python2.7/decimal.py", line 3733, in _raise_error
raise error(explanation)
decimal.InvalidOperation: diagnostic info too long in NaN
decNumber (and fastdec) set ConversionSyntax.
----------
messages: 93491
nosy: skrah
severity: normal
status: open
title: decimal.py: NaN payload conversion
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7047>
_______________________________________
More information about the New-bugs-announce
mailing list