[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

Mark Dickinson report at bugs.python.org
Fri Feb 27 12:50:59 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

For anyone who does care about this, it should be noted that
the Fraction type has similar issues.  The following comes from Python
2.7 on a 64-bit machine:

>>> int(Fraction(2**63-1))
9223372036854775807L
>>> int(2**63-1)
9223372036854775807

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5377>
_______________________________________


More information about the Python-bugs-list mailing list