By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,631 Members | 826 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,631 IT Pros & Developers. It's quick & easy.

python preallocate some integers?

P: n/a

I seem to recall somewhere, possibly in the Python Essential Reference
(but unfortunately, books don't have a "find" function), that Python
preallocates and never destroys the first 100 integers. A minute of
google searching didn't help me so I tried some simple tests. Based on
these, it appears that only one copy of the integers -5 through 99 is

Can someone please verify this for me or tell me what is done with
regard to this?


Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.