I am experimenting with subclasses that all need the same metaclass as the base class. Is there a way to make the metaclass be inherited, so that you don't have to repeat the "metaclass = MetaClass" with every subclass.
...class Pardon(type): pass
...class A(metaclass=Pardon): pass
...class B(A): pass
<class '__main__.Pardon'>type(B)
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 192:42:33 |
Calls: | 337 |
Files: | 5,979 |
Messages: | 231,055 |