[issue23201] Decimal(0)**0 is an error, 0**0 is 1, but Decimal(0) == 0
Raymond Hettinger
report at bugs.python.org
Fri Jan 9 09:18:35 CET 2015
Raymond Hettinger added the comment:
> this deserves to be spelled out in big red letters in
> the documentation for the decimal module, along with
> any other inconsistencies.
I think you lost all sense of proportion here. The decimal module is obliged to follow the decimal spec (that is its reason for existence).
The decimal module docs are already create a heavy mental load and their usability would not be improved shifting focus to corner case inconsistencies between types that haven't proven to be an issue in practice. If you were to go write a blog post about 0**0 versus Decimal(0)**0, I think you would find that no one cares.
----------
assignee: -> rhettinger
priority: normal -> low
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23201>
_______________________________________
More information about the Python-bugs-list
mailing list