I checked I have a string whose content is a function name, how to refer to the corresponding function in Python? but it is not the question I want to ask.
The question is: I have a string 'ABC'
and I want to create an instance of class ABC
as:
my_obj = ABC ()
The input 'ABC'
is read from Python arguments (argparse
).
The class is already defined and imported.