]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Patch by Tim Peters to improve the range checks for range() and
authorGuido van Rossum <guido@python.org>
Tue, 23 Feb 1999 16:11:01 +0000 (16:11 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 23 Feb 1999 16:11:01 +0000 (16:11 +0000)
commit124eff022578980310f47a351525b4b6cd5f7b27
tree57e8406671462d20e4d4e217de053bed21e88d62
parent717d1fdf2acbef5e6b47d9b4dcf48ef1829be685
Patch by Tim Peters to improve the range checks for range() and
xrange(), especially for platforms where int and long are different
sizes (so sys.maxint isn't actually the theoretical limit for the
length of a list, but the largest C int is -- sys.maxint is the
largest Python int, which is actually a C long).
Python/bltinmodule.c