No destructor
Alex Martelli
alex at magenta.com
Wed Aug 23 11:59:04 EDT 2000
"Martin von Loewis" <loewis at informatik.hu-berlin.de> wrote in message
news:p6qog2k13hl.fsf at informatik.hu-berlin.de...
> "Alex Martelli" <alex at magenta.com> writes:
>
> > GC and reliable-finalization never seem to cooperate 100% in
> > any language or environment I know of. Sure, with GC, circular
> > references will not mean automatic resource leaks, which is
> > no doubt a gain, but, consider for example -- in WHAT order
> > would the objects' __del__ methods be called? I know of no
> > way to ensure a good result.
>
> Neil Schemenauer's collector does not collect a cycle if it involves
> finalization of an instance object.
Probably the wisest approach, all in all.
But it does reinforce my thesis that GC and reliable finalization
don't cooperate 100%...:-).
Alex
More information about the Python-list
mailing list