how to "free" an object/var ?

Terry Reedy tjreedy at
Wed Jan 31 20:47:30 CET 2007

"John Nagle" <nagle at> wrote in message 
news:AAXvh.1465$zH1.1114 at
|    If your data structure has no backlinks, it will go away
| as soon as the last reference to it disappears.
|    In Python, garbage collection is mostly a backup to
| the reference counting system.

These both are true of the CPython implementation (current and known 
future, at least) but not of other implementations and not of the language 

The same comment applies to some other posts in this thread.  GC, if any, 
is implementation defined.


More information about the Python-list mailing list