[issue9417] Declaring a class creates circular references

Kristján Valur Jónsson report at bugs.python.org
Fri Aug 6 22:34:03 CEST 2010

Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:

What about my suggestion of simply providing a convention on how to disable links manually, similar to how minidom.document does it with an "unlink" method?  If these cases are documented, then there shouldn't be any extra bother to do so.
We could provide an builtin unlink() function that calls any __unlink__ special method if present.

This sounds like a feature request, really, and one that is unlikely to get accepted since it sort of exposes an implementation detail of C python.  Oh well.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list