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: | 03:13:07 |
Calls: | 162 |
Files: | 5,340 |
Messages: | 222,161 |