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: | 103:11:14 |
Calls: | 126 |
Files: | 4,930 |
Messages: | 219,099 |