How do I say "Is this a function"?

Fabiano Sidler fabianosidler at my-mail.ch
Sat Apr 26 20:03:13 EDT 2008


John Henry schrieb:
>       exec fct


You don't want this. You want to store the function in a list instead:

l = [ f1, f3, others ]
for i in [0,1]: l[i]()

Greetings,
Fabiano



More information about the Python-list mailing list