[issue23201] Decimal(0)**0 is an error, 0**0 is 1, but Decimal(0) == 0

Ezio Melotti report at bugs.python.org
Fri Jan 9 04:27:14 CET 2015


Ezio Melotti added the comment:

In the code there is this comment:
    # 0**0 = NaN (!), x**0 = 1 for nonzero x (including +/-Infinity)
and raising the error for this specific case seems intentional.

----------
nosy: +ezio.melotti, facundobatista, mark.dickinson, rhettinger, skrah
versions:  -Python 3.2, Python 3.3

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


More information about the Python-bugs-list mailing list