Executing a list of functions

Michel Claveau mcPas.De.Spam at mclaveauPas.De.Spam.com
Fri Mar 16 18:36:36 EDT 2007


Hi!

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]







-- 
@-salutations

Michel Claveau





More information about the Python-list mailing list