The inspect module retrieves useful information about an object:
import inspect inspect.getmembers( o) return a list of (name, value) pairs with all memers of an object inspect.isclass( o) return True, if the object is a class inspect.getmodule(o) return the name of the module
Example:
import inspect
for i in inspect.getmembers( event.data):
if i[0][0] == '_':
continue
if inspect.ismethod(i[1]):
continue
print( "%s: %s" % ( repr(i[0]), repr( i[1])))