Surprise using the 'is' operator

Terry Reedy tjreedy at udel.edu
Tue Sep 26 16:27:04 EDT 2006


"wesley chun" <wescpy at gmail.com> wrote in message 
news:78b3a9580609261239v6a7e289q126e90da401c2752 at mail.gmail.com...
> 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

> i know it's subject to change.

Yes ;-)

tjr






More information about the Python-list mailing list