Ray.Allen <ysj....@gmail.com> added the comment:

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.

----------
nosy: +ysj.ray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9417>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to