Eryk Sun added the comment:

> Please treat this as a new feature (just in case) and only 
> apply it to 3.6.

How about changing PyType_CheckExact to PyType_Check for 2.7 and 3.5? It solves 
the original problem by expanding the single-argument case to metaclasses that 
aren't an exact instance of `type`. I think that's unlikely to break existing 
code. It also shouldn't cause a performance problem since the PyType_Check 
macro uses the Py_TPFLAGS_TYPE_SUBCLASS flag.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27157>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to