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 Martin.Teichmann
Recipients Martin.Teichmann
Date 2015-03-20.13:44:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When a new class is initialized with __init__ in a metaclass,
the __class__ cell of the class about to be initialized is not
set yet, meaning that super() does not work.

This is a known but fixable problem. The attached patch moves
the initialization of __class__ from the end of __build_class__
into type.__new__. This avoids the proliferation of methods
which don't have the __class__ cell set.
Date User Action Args
2015-03-20 13:44:21Martin.Teichmannsetrecipients: + Martin.Teichmann
2015-03-20 13:44:21Martin.Teichmannsetmessageid: <>
2015-03-20 13:44:21Martin.Teichmannlinkissue23722 messages
2015-03-20 13:44:21Martin.Teichmanncreate