[issue11144] int(float) may return a long for no reason
Mark Dickinson
report at bugs.python.org
Tue Feb 8 09:23:44 CET 2011
Mark Dickinson <dickinsm at gmail.com> added the comment:
I'd call this a bug, albeit a minor one. The documentation for 'int' says:
"If the argument is outside the integer range a long object will be returned instead."
... which certainly suggests (without actually formally implying) that an int object should be returned if the argument is within the integer range.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11144>
_______________________________________
More information about the Python-bugs-list
mailing list