functions = {'myfoo': foo.bar} mystring = 'myfoo' if mystring in functions: functions[mystring]()Function introspectionIntrospection is an ability to determine the type of an object at runtime. Everything in python is an object. Every object in Python may have attributes and methods. By...
functions = {'myfoo': foo.bar} mystring = 'myfoo' if mystring in functions: functions[mystring]()Function introspectionIntrospection is an ability to determine the type of an object at runtime. Everything in python is an object. Every object in Python may have attributes and methods. By...