Daniel Urban <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue1294232>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com