[issue1533] Bug in range() function for large values
Alexander Belopolsky
report at bugs.python.org
Thu May 6 19:42:22 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
> the requirements are different for 2.6: floats should give a
> DeprecationWarning rather than a TypeError.
I thought about it, but the comment in test_builtin.py,
# Reject floats when it would require PyLongs to represent.
# (smaller floats still accepted, but deprecated)
convinced me that raising TypeError on large floats is a feature. I don't have a strong opinion on this issue, but I think a conservative approach is not to change current behavior in the maintenance branch unless it is clearly a bug.
I did add a test checking that "smaller floats still accepted, but deprecated."
----------
Added file: http://bugs.python.org/file17239/issue1533-release26-maint.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1533>
_______________________________________
More information about the Python-bugs-list
mailing list