↧
Answer by Andrey for Calling a function of a module by using its name (a string)
You should take a look to qcall:from qcall import callcall("foo.bar") # calls foo.bar()
View ArticleAnswer by Daniel Viglione for Calling a function of a module by using its...
Verified and tested:# demo.pyimport sysdef f1(): print("Function 1 called")def f2(): print("Function 2 called")def f3(): print("Function 3 called")def f4(): print("Function 4 called")functions = {"f1":...
View Article