how to get function names from the file

Luis M. González luismgz at gmail.com
Fri Feb 17 10:13:46 EST 2006


"eval" is not necessary in this case.
If you have a tuple with function names such as this: x=(printFoo,
printFOO)

you can execute them this way:

>>> for f in x:
	f()




More information about the Python-list mailing list