destructors order not guaranteed?

Rainer Deyke root at rainerdeyke.com
Tue Oct 31 14:17:38 EST 2000


"William S. Lear" <rael at see.sig.com> wrote in message
news:87snpduoxg.fsf at lisa.zopyra.com...
> I don't see why it is not possible to "unwind" objects using a simple
> stack of object pointers, but then I don't know the Python interpreter
> internals.

You can explicitly control the lifetime of objects by using del.  You can
also reference the objects through a utility object which defines __del__ to
delete the objects it references in order (which can be automated).


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list