[Python-Dev] Python 3, new-style classes and __class__

Vinay Sajip vinay_sajip at yahoo.co.uk
Sun Nov 20 10:34:04 CET 2011


Michael Foord <fuzzyman <at> voidspace.org.uk> writes:

> The Python compiler can do strange things with assignment to __class__ in the
> presence of super. This issue has now been fixed, but it may be what is
> biting you:
>
> http://bugs.python.org/issue12370
>
> If this *is* the problem, then see the workaround suggested in the issue. 
>

Yes, that workaround worked. Good catch - thanks!

Regards,

Vinay Sajip



More information about the Python-Dev mailing list