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: | 492741:34:11 |
| Calls: | 390 |
| Calls today: | 1 |
| Files: | 6,726 |
| Messages: | 241,839 |