Destructor never called ???
Tim Roberts
timr at probo.com
Fri Sep 20 00:19:29 EDT 2002
aahz at pythoncraft.com (Aahz) wrote:
>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
>>occupies.
>
>Wrong. CPython uses reference counting backed by GC.
Well, then, what was all the fuss about deterministic desctructors in the
newsgroup last year or so? Has this changed, or am I just remembering this
entirely wrong?
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list