Seems to me that one should be able to put the names of several
functions in a list and then have the list executed. But it seems the
output of the functions is hidden, only their return value is visible.
Is this because the list execution is another scope?

Thanx,

jh

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

def a():
    print "this is a"

def b():
    print "this is b"

lst = [a(), b()]

lst

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to