is operator

John Machin sjmachin at lexicon.net
Mon Mar 10 06:58:23 EDT 2008


On Mar 10, 9:11 pm, Matt Nordhoff <mnordh... at mattnordhoff.com> wrote:
> castiro... at gmail.com wrote:
> >> I believe Python automatically creates and caches int objects for 0-256,
> >> so whenever you use them, they refer to the same exact objects. Since
> >> ints are immutable, it doesn't matter.
>
> > One of the biggest hits on start-up time, by the way.  ;)
>
> Well, the developers clearly decided it was worth it at the time. Who
> knows, perhaps that's changed since then.
> --

Matt,
PDFTT.
Cheers,
John



More information about the Python-list mailing list