Destructors and reference counting
aahz at pythoncraft.com
Thu Jul 15 17:36:50 CEST 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:
More information about the Python-list