builder

Can you use a string to instantiate a class?

Can you use a string to instantiate a class? Question: I’m using a Builder pattern in Python to separate a bunch of different configuration possibilities. Basically, I have a bunch of classes that are named ID… (e.g. ID12345). These all inherit from the base Builder class. In my script, I need to instantiate an instance …

Total answers: 6