Mark Dickinson added the comment:

> This behavior seems to be required by the General Decimal Arithmetic
Specification (http://speleotrove.com/decimal/daexcep.html )

Yes, exactly.  The decimal module strictly follows that specification.  I don't 
like the 0**0 -> NaN result much either (especially when we also have inf**0 -> 
1), but it's what's specified.  I've talked to Mike Cowlishaw (the author of 
the specification) about this particular issue, and the spec is not likely to 
change on this point.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23201>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to