Chris Rebert added the comment:

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

> The following exceptional conditions can occur:
>     [...]
>     Invalid operation
>         This occurs and signals "invalid-operation" if:
>             [...]
>             * both operands of the "power" operation are zero

"signals invalid-operation" apparently being mapped by default in Python to 
"raise the InvalidOperation exception".

----------
nosy: +cvrebert

_______________________________________
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