Mar-20-2020, 01:01 AM
(This post was last modified: Mar-20-2020, 01:02 AM by JohnnyCoffee.)
I need to access a class method (moduleB) by returning a class A method. This I can do by importing the native module to receive the module name as a parameter:
Now I need to get the parameter of methodB and give functionality in the return:
Does the example above generate an error ?
1 |
importlib.import_module(moduleB) |
1 2 |
params = "methodB()" return ModuleB.params |