[Python-Dev] Python 2.4 set objects and cyclic garbage

Barry Warsaw barry at python.org
Wed May 11 19:20:01 CEST 2005

In setobject.c rev 1.26 + 1.27 Raymond removed gc support from built-in
set objects, claiming in the log message that "sets cannot have
cycles".  Yet the attached program creates a cycle that I don't believe
ever gets reclaimed.

Patch 1200018 restores GC support to set objects for Python 2.4.  Thanks
to my colleague Matt Messier for finding this.

kick-me-if-i'm-smoking-something-ly y'rs,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cycle.py
Type: application/x-python
Size: 367 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20050511/afd2cb24/cycle.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20050511/afd2cb24/attachment.pgp

More information about the Python-Dev mailing list