No destructor

Alex Martelli alex at magenta.com
Tue Aug 22 04:02:08 EDT 2000


"peter.foreman" <peter.foreman at tinyworld.co.uk> wrote in message
news:39a19f5f_1 at news1.vip.uk.com...
> Thanks for the replies, I must have mis-interpreted something I've read.
>
> How does Python < 2.0 handle circular references?  Is the programmer
> expected to handle them via weak refs etc?

There are no 'weak references' in Python 1.5.2 (nor, I think, in 1.6).
Circular references need to be explicitly broken by the programmer,
else there will be a resource leak.


Alex






More information about the Python-list mailing list