comparison Python/pythonmain.c @ 10279:886ea255f381 legacy-trunk

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).
author Guido van Rossum <guido@python.org>
date Tue, 23 Feb 1999 16:11:01 +0000
parents 85140b354890
children
comparison
equal deleted inserted replaced
10278:46ac11b78e92 10279:886ea255f381