[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1
Mark Dickinson
report at bugs.python.org
Sun Mar 29 20:48:59 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Thanks, Victor
A couple of things:
- I'm getting a test failure in test_class
- you should probably be using sys.maxint rather than sys.maxsize: the
two aren't necessarily the same. (E.g., on 64-bit windows, I believe that
sys.maxint is 2**31-1 while sys.maxsize is 2**63-1).
- This still doesn't fix the case of int(Fraction(2L)).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5377>
_______________________________________
More information about the Python-bugs-list
mailing list