Destructors and reference counting

Aahz aahz at pythoncraft.com
Thu Jul 15 11:36:50 EDT 2004


In article <9418be08.0407070604.4618c50 at posting.google.com>,
Elbert Lev <elbertlev at hotmail.com> wrote:
>
>I want to explain why I do not like garbage collection. gc works great
>for memory. But one can't expects real resources (files, sockets,
>handles etc.)  be released by gc. Reference counting is a little bit
>slower but predictable.

That's true; however, reference counting fails in the presence of
cycles, and it can be difficult even for Python experts to determine
what will cause a cycle in Python.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Barbara Boxer speaks for me:
http://buffaloreport.com/2004/040713.boxer.marriage.html



More information about the Python-list mailing list