[issue1294232] Error in metaclass search order
Daniel Urban
report at bugs.python.org
Wed Apr 20 21:26:38 CEST 2011
Daniel Urban <urban.dani+py at gmail.com> added the comment:
That may be, but with my latest patch, this works (func is a function):
class X(metaclass=func):
pass
But this blows up with a TypeError:
class X(object, metaclass=func):
pass
Is this the desired behaviour? Or should we disallow non-class metaclasses in every case? (And what about backwards-compatibility?)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1294232>
_______________________________________
More information about the Python-bugs-list
mailing list