Problem with garbage collection (sort of)
Aahz
aahz at pythoncraft.com
Mon Aug 18 10:32:43 EDT 2003
In article <246a4e07.0308180608.2b8d685a at posting.google.com>,
Frank Millman <frank at chagford.com> wrote:
>
>y is an instance of class c, which creates an instance of class b,
>which creates an instance of class a. When y goes out of scope and is
>deleted, I want the instances of class b and class a to be deleted as
>well.
Works for me in Python 2.2.3; what version are you using?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
This is Python. We don't care much about theory, except where it intersects
with useful practice. --Aahz
More information about the Python-list
mailing list