[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

Stefan Krah report at bugs.python.org
Thu Feb 20 18:21:09 EST 2020


Stefan Krah <stefan at bytereef.org> added the comment:

BTW, this PR implements the invariant:

"If there exists an exact result at a lower precision, this
result should also be returned at MAX_PREC (without MemoryError)".

So non-integer powers are left out, since _decimal has no notion
of exact non-integer powers yet.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39576>
_______________________________________


More information about the Python-bugs-list mailing list