You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
run the following code :
print(len(range(2**32 + 1)))
What is the expected output? What do you see instead?
I think we should get an overflow error (list can't be longer than the
max int value), instead we get '0'
What version of the product are you using? On what operating system?
svn version : trunk@157, on ubuntu using a 64bit computer
Please provide any additional information below.
in the code of tp_range (builtins.c), we convert the arguments from
double to int without any check.
Original issue reported on code.google.com by [email protected] on 5 Feb 2010 at 9:25
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 5 Feb 2010 at 9:25The text was updated successfully, but these errors were encountered: