On 2006-06-29, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Now what about this: > >>>> id(600) > 134745616 >>>> id(601) > 134745616 > > id of an object is unique *for the lifetime of this object*. Nothing > prevents it from being reused later.
Indeed. Since in CPython, it's the address of a C language data structure, if IDs didn't get re-used, then the virtual memory size of any long-running Python program would grow without bound. The working set would grow more slowly that the total virtual size, but it would still be problematic. -- Grant Edwards grante Yow! I'm GLAD I at remembered to XEROX all visi.com my UNDERSHIRTS!! -- http://mail.python.org/mailman/listinfo/python-list