generating method names 'dynamically'

Murali maha.murali at gmail.com
Thu Jan 26 18:58:54 EST 2006


import inspect

x = ABC() # create an instance of class ABC
print inspect.getmembers(x,inspect.ismethod)
--------------------

Most of any introspection stuff can be done using the module "inspect".




More information about the Python-list mailing list