Message134173
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?) |
|
Date |
User |
Action |
Args |
2011-04-20 19:26:38 | daniel.urban | set | recipients:
+ daniel.urban, gvanrossum, georg.brandl, terry.reedy, amaury.forgeotdarc, ncoghlan, rodsenra, pwerneck, benjamin.peterson |
2011-04-20 19:26:38 | daniel.urban | set | messageid: <1303327598.83.0.887294701404.issue1294232@psf.upfronthosting.co.za> |
2011-04-20 19:26:38 | daniel.urban | link | issue1294232 messages |
2011-04-20 19:26:38 | daniel.urban | create | |
|