This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ysj.ray
Recipients andrea.corbellini, pitrou, ysj.ray
Date 2010-07-29.15:03:00
SpamBayes Score 0.040595103
Marked as misclassified No
Message-id <1280415782.95.0.300048114685.issue9417@psf.upfronthosting.co.za>
In-reply-to
Content
This should not be a problem, I think. We cannot avoid such a circular reference. 

I believe the main reason of the circular reference is in MyClass.__mro__, this is a list and contains a reference to MyClass. You can add "__slots__ = []" to MyClass's class body to avoid __dict__(the one you mentioned) and another member which contains two more references to MyClass, but the __mro__ still contains the last reference to MyClass.
History
Date User Action Args
2010-07-29 15:03:03ysj.raysetrecipients: + ysj.ray, pitrou, andrea.corbellini
2010-07-29 15:03:02ysj.raysetmessageid: <1280415782.95.0.300048114685.issue9417@psf.upfronthosting.co.za>
2010-07-29 15:03:01ysj.raylinkissue9417 messages
2010-07-29 15:03:00ysj.raycreate