[Python-ideas] Suggestion: Deprecate metaclasses that are not instances of type

Steven D'Aprano steve at pearwood.info
Thu Oct 13 17:40:49 EDT 2016


On Thu, Oct 13, 2016 at 01:46:34PM -0700, Neil Girdhar wrote:

> If provided, the explicit metaclass must be an instance of 
> type()."

-1 for pointless breakage.

The metaclass has always been permitted to be any callable. You haven't 
given any good reason for gratuitously changing this.



-- 
Steve


More information about the Python-ideas mailing list