Message282317
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. |
|
Date |
User |
Action |
Args |
2016-12-04 06:47:55 | ncoghlan | set | recipients:
+ ncoghlan, gvanrossum, larry, ned.deily, python-dev, eric.snow, Martin.Teichmann, Tim.Graham |
2016-12-04 06:47:54 | ncoghlan | set | messageid: <1480834074.15.0.65363246825.issue23722@psf.upfronthosting.co.za> |
2016-12-04 06:47:54 | ncoghlan | link | issue23722 messages |
2016-12-04 06:47:53 | ncoghlan | create | |
|