[issue1533] Bug in range() function for large values

Rafael Zanella report at bugs.python.org
Sun Feb 24 14:19:42 CET 2008


Rafael Zanella added the comment:

According to the documentation
(http://docs.python.org/dev/library/functions.html) "The arguments must
be plain integers", so I think the wrong thing here is to run the
object's __int__() under the range()'s hood. I think the right thing to
do would be to explicitly invoke int() on passing an non-int argument as
parameter.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1533>
__________________________________


More information about the Python-bugs-list mailing list