Author ncoghlan
Recipients Martin.Teichmann, Tim.Graham, eric.snow, gvanrossum, larry, ncoghlan, ned.deily, python-dev
Date 2016-12-04.06:47:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480834074.15.0.65363246825.issue23722@psf.upfronthosting.co.za>
In-reply-to
Content
This latest patch restores the behaviour where a reference to the class cell is returned from the class-defining closure.

That restoration allows __build_class__ to implement a sanity check that ensures that the class referenced from the cell is the one that was just defined, and complain if they don't match.

To give metaclasses like the Django one a chance to adjust, not setting it at all is just a deprecation warning for 3.6, while setting it incorrectly is a TypeError.
History
Date User Action Args
2016-12-04 06:47:55ncoghlansetrecipients: + ncoghlan, gvanrossum, larry, ned.deily, python-dev, eric.snow, Martin.Teichmann, Tim.Graham
2016-12-04 06:47:54ncoghlansetmessageid: <1480834074.15.0.65363246825.issue23722@psf.upfronthosting.co.za>
2016-12-04 06:47:54ncoghlanlinkissue23722 messages
2016-12-04 06:47:53ncoghlancreate