[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1
STINNER Victor
report at bugs.python.org
Fri Feb 27 02:13:39 CET 2009
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Anyway, the behaviour is correct. But ok, it's "strange" because
unexpected. You have to understand the fact the long=>int conversion
is manual :-/ Decimal.__int__ might force return int(result) at the
end to avoid problem with -sys.maxint, but is it really important? I
don't think so. Python3 doesn't have this problem ;-)
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5377>
_______________________________________
More information about the Python-bugs-list
mailing list