How to register classes that inherit from an abstract class in python
How to register classes that inherit from an abstract class in python Question: I’m creating a module with a function that works as a factory of the implemented classes. It works registering the classes with the help of a metaclass (a pattern I have just copied from here). _registry = {} def register_class(cls): _registry[cls.__name__] = …
Total answers: 1