>> I don't pretend to understand the reasons for all of this, >> but if it is possible to use the same integer object whenever >> it is referenced, then why should there be a limit on range? > > Preallocating all the 4 billion 4-byte ints would overfill the memory of > most machines ;-)
Sure, I just meant that once a given integer was used, it should be referenced the next time that value is required. As this thread exposed however, there is a trade off for lookup time. -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list