[issue2478] decimal.Decimal( 0 ).sqrt() fails

glathoud report at bugs.python.org
Tue Mar 25 11:14:51 CET 2008


New submission from glathoud <glathoud at yahoo.fr>:

I got a crash with Python 2.5.2 :

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import decimal
>>> decimal.Decimal( 0 ).sqrt()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "f:\Python25\lib\decimal.py", line 2330, in sqrt
    return ans._fix(context)
  File "f:\Python25\lib\decimal.py", line 1461, in _fix
    Etiny = context.Etiny()
AttributeError: 'NoneType' object has no attribute 'Etiny'

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2478>
__________________________________


More information about the Python-bugs-list mailing list