[issue9417] Declaring a class creates circular references

Georg Brandl report at bugs.python.org
Thu Jul 29 18:57:56 CEST 2010


Georg Brandl <georg at python.org> added the comment:

This is not so easy: the __mro__ tuple, as its name says, is used internally for method resolution, or finding attributes on the type's bases. __objclass__ is used whenever the descriptor is accessed.  These operations are involved in every method call.

If you want this to go somewhere, you will have to produce a patch and demonstrate that the slowdown does not unsuitably impact performance.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9417>
_______________________________________


More information about the Python-bugs-list mailing list