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 ncoghlan
Recipients Martin.Teichmann, abarry, berker.peksag, ncoghlan, python-dev
Date 2016-07-31.02:46:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469933205.79.0.893952610015.issue27366@psf.upfronthosting.co.za>
In-reply-to
Content
The new porting note doesn't quite capture all the subtleties of the situation, but should be sufficient for folks to get any affected custom metaclasses working again (since the key is to avoid passing those parameters up to type.__new__).

I also added a note about the fact that __init_subclass__ implementations don't have access to the metaclass hint, but can retrieve the actual metaclass based on the passed in class object.
History
Date User Action Args
2016-07-31 02:46:45ncoghlansetrecipients: + ncoghlan, python-dev, berker.peksag, Martin.Teichmann, abarry
2016-07-31 02:46:45ncoghlansetmessageid: <1469933205.79.0.893952610015.issue27366@psf.upfronthosting.co.za>
2016-07-31 02:46:45ncoghlanlinkissue27366 messages
2016-07-31 02:46:45ncoghlancreate