does python have useless destructors?

"Martin v. Löwis" martin at v.loewis.de
Sun Jun 13 20:19:14 CEST 2004


Roger Binns wrote:
> My comment was in the context of what should the GC
> do when it is faced with a "hard" problem, such as
> cycles and objects with __del__ methods.  At the moment
> CPython gives up.

So in short: you are not proposing an implementable
solution. As a result, Peter Hansen's comment stands:

"Because nobody has yet proposed
a workable solution to the several conflicting
requirements"

A "workable solution" comes with a precise algorithm
as to what action to take in what order.

Regards,
Martin




More information about the Python-list mailing list