No destructor

Robin Becker robin at jessikat.fsnet.co.uk
Tue Aug 22 18:50:59 EDT 2000


In article <1541370114.20000822214659 at vega.bg>, spahievi
<spahievi at vega.bg> writes
>>> How does Python < 2.0 handle circular references?  Is the programmer
>>> expected to handle them via weak refs etc?
>
>AM> There are no 'weak references' in Python 1.5.2 (nor, I think, in 1.6).
>AM> Circular references need to be explicitly broken by the programmer,
>AM> else there will be a resource leak.
>
>There is extension module for weak dicts.
>
>Niki
...
there's an optional garbage collector in the latest CVS so I guess
circular refs aren't absolutely horrible any longer.
-- 
Robin Becker



More information about the Python-list mailing list