how can I execute a function string

Francis Avila francisgavila at
Tue Jan 13 23:37:39 CET 2004

Premshree Pillai wrote in message ...
>You need to use eval() to run code on-the-fly. See

Eval only evaluates expressions, not statements. A function definition is a
statement.  (Think about it: what would eval() return?)

Francis Avila

More information about the Python-list mailing list