Destructors and reference counting

Aahz aahz at
Thu Jul 15 17:36:50 CEST 2004

In article <9418be08.0407070604.4618c50 at>,
Elbert Lev <elbertlev at> 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           <*>

Barbara Boxer speaks for me:

More information about the Python-list mailing list