[issue17950] Dynamic classes contain non-breakable reference cycles
Armin Rigo
report at bugs.python.org
Tue May 14 18:10:02 CEST 2013
Armin Rigo added the comment:
Well, adding weak references left and right to break cycles is going to subtly change or break people's code and hasn't been done so far, but that's only my opinion. Anyway, I want to correct what you say about tp_subclasses: yes, tp_subclasses is a list of weakrefs, but the reason is not (as I think you mean) to avoid cycles. The reason is simply that if it were strong references, then all classes ever created would stay alive.
----------
nosy: +arigo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17950>
_______________________________________
More information about the Python-bugs-list
mailing list