[issue1533] Bug in range() function for large values
Alexander Belopolsky
report at bugs.python.org
Tue May 4 20:30:18 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
I am attaching a py3k patch that adds new tests. Since there are no end user visible changes, I don't believe a Misc/NEWS entry is needed. A commit message may read:
Issue #1533: Tests only. Added tests for consistency in range function argument processing.
Note that the first chunk:
- # Reject floats when it would require PyLongs to represent.
- # (smaller floats still accepted, but deprecated)
+ # Reject floats.
+ self.assertRaises(TypeError, range, 1., 1., 1.)
is applicable to the trunk as well.
----------
versions: +Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file17203/issue1533-py3k-tests.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1533>
_______________________________________
More information about the Python-bugs-list
mailing list