Class destructor

Steven Taschuk staschuk at telusplanet.net
Thu Feb 13 18:13:51 EST 2003


Quoth Jp Calderone:
> On Thu, Feb 13, 2003 at 11:33:30AM -0500, Mongryong wrote:
  [...]
> > If you keep in mind that Python uses 'reference counting' for garbage
> > collecting, you can see why the 'del a1' appears to be doing nothing. 
> 
>   Actually, reference counting and garbage collection are two separate
> methods.  Straight reference counting is used for all non-cyclic structures. 

Um.  Reference counting is one type of garbage collection.  That
Python happens to have another kind of garbage collector as well
does not indicate otherwise, even though in Python-specific
contexts it is common to speak of the latter as "the" garbage
collector.

-- 
Steven Taschuk           |  o- @
staschuk at telusplanet.net | 7O   )
                         |  "  (    Hummingbird





More information about the Python-list mailing list