Surprise using the 'is' operator

wesley chun wescpy at gmail.com
Tue Sep 26 17:58:10 EDT 2006


> "Terry Reedy" <tjr... at udel.edu> wrote:
> > as a side note, the ints that are cached (for current versions of
> > Python) are in range(-1, 100)... is this documented somewhere?
> Not true for at least 2.4 and 2.5.  The cached range has expanded

oops, apologies to all... it really *is* subject to change. ;-) it's
now range(-5, 257).

-wesley



More information about the Python-list mailing list