Destructor never called ???
aahz at pythoncraft.com
Thu Sep 12 07:29:07 CEST 2002
In article <tp70ou0r0j11as6enhpsaqul4oqa3mlu6t at 4ax.com>,
Tim Roberts <timr at probo.com> wrote:
>However, Python is a garbage-collected system. Unlike in COM, an object is
>NOT destroyed as soon as its reference count goes to 0. Your object will
>only be destroyed if the garbage collector happens to run, and decides that
>it might be a convenient time to actually free up the space your object
Wrong. CPython uses reference counting backed by GC.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Project Vote Smart: http://www.vote-smart.org/
More information about the Python-list