B
Bengt Richter
Just wondering whether anyone has discussed using decorator
syntax to effect metaclass processing. E.g.
@MC
class Foo(object):
pass
would have the same effect as
class Foo(object):
__metaclass__ = MC
pass
ISTM fairly analogous to function decoration, just
differing in the arguments passed.
Regards,
Bengt Richter
syntax to effect metaclass processing. E.g.
@MC
class Foo(object):
pass
would have the same effect as
class Foo(object):
__metaclass__ = MC
pass
ISTM fairly analogous to function decoration, just
differing in the arguments passed.
Regards,
Bengt Richter