[Beginner] Calling a function by its name in a string

Tito titogarcia_borra_esto at gmail.com
Wed Jul 27 20:12:35 CEST 2005


Hi all:

Is there a metalanguage capability in Python (I know there are many) to 
call a function having its name in a string?

Something like:
__call__("foo")

instead of:
foo()

Regards,
Tito



More information about the Python-list mailing list