[Python-3000] Free list for small longs

Christian Heimes lists at cheimes.de
Tue Feb 5 22:47:11 CET 2008


Martin v. Löwis wrote:
> I'm puzzled as to how you arrive at this upper bound. You can surely
> have more than 2**16 integer objects whose abs values are all
> below 2**15, no?

Oh ... I see. You are right and I did a mistake by confusing the amount
of objects with the range. I'd better add an upper bound check.



More information about the Python-3000 mailing list