[New-bugs-announce] [issue7754] decimal.Decimal 0.0**0.0 error

Mike Clark report at bugs.python.org
Fri Jan 22 03:20:21 CET 2010


New submission from Mike Clark <undefinedspace at gmail.com>:

Good behavior:
>>> 0.0**0.0
1.0
>>>

Bad behavior:
>>> Decimal('0.0')**Decimal('0.0')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/decimal.py", line 2101, in __pow__
    return context._raise_error(InvalidOperation, '0 ** 0')
  File "/usr/lib/python2.6/decimal.py", line 3699, in _raise_error
    raise error(explanation)
decimal.InvalidOperation: 0 ** 0
>>>

I'm in Python 2.6, I don't know if other versions are affected.

----------
messages: 98126
nosy: Mike.Clark
severity: normal
status: open
title: decimal.Decimal 0.0**0.0 error
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7754>
_______________________________________


More information about the New-bugs-announce mailing list