Executing a list of functions

Michel Claveau mcPas.De.Spam at mclaveauPas.De.Spam.com
Fri Mar 16 23:36:36 CET 2007


Your code run OK for me.

But, if you want "time-lag" (sorry for my english) execution, you can 
try this:

def a():
    print "this is a"

def b():
    print "this is b"

lst = [a, b]
[f() for f in lst]


Michel Claveau

More information about the Python-list mailing list