Stefan Krah <stefan-use...@bytereef.org> added the comment:

This is a very loosely related issue, but I think it fits in here.
To be consistent with the documentation, the three argument power
should use the ideal exponent:

>>> c = getcontext()
>>> c.prec = 400
>>> Decimal('1E400') % Decimal('1123123E5')
Decimal('8.45074E+10')
>>> pow(Decimal('1E400'), 1, (Decimal('1123123E5')))
Decimal('84507400000')

----------
title: decimal.py: NaN result in pow(x, y, z) with prec 1 -> decimal.py: Three 
argument power issues

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

Reply via email to