is operator

castironpi at gmail.com castironpi at gmail.com
Mon Mar 10 10:48:17 CET 2008


> 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.  ;)



More information about the Python-list mailing list