J
James Mills
Hi all,
Is there a compatible way to use meteclasses
in both Python 2.x (2.6 to 2.7) and Python 3.x
(3.0 to 3.2).
Python 2.x:
class Foo(object):
__meteclass__ = MyMetaClass
Python 3.x:
class Foo(metaclass=MyMetaClass):
pass
Thanks,
cheers
James
Is there a compatible way to use meteclasses
in both Python 2.x (2.6 to 2.7) and Python 3.x
(3.0 to 3.2).
Python 2.x:
class Foo(object):
__meteclass__ = MyMetaClass
Python 3.x:
class Foo(metaclass=MyMetaClass):
pass
Thanks,
cheers
James