[issue7754] decimal.Decimal 0.0**0.0 error

Raymond Hettinger report at bugs.python.org
Fri Jan 22 20:58:55 CET 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I would not be happy with unlinking __pow__ from the standard's power operation.  We wouldn't be doing our users a favor by implementing part of the standard, then tucking it away in a unexpected place, and substituting our own notion of what should be done.

>From the outset, one of the reasons for buying into the standard was the notion that the interactions had been well thought-out and heavily discussed in another forum.  By agreeing to implement the standard, we have surrendered ourselves to the tyranny of whatever decisions were made.  Another reason for staying compliant (in the most obvious way possible) is to make formulas more interoperable between languages that have chosen to implement the standard (i.e. 0**0 should do the same thing in Rexx as it does in Python).

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list