Function reference -> name?

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Fri Nov 14 15:14:30 CET 2003


When I have a reference to a function (as in parameter 'function' of f1
below), how can I get the name of that function ('f2' in the example
below)?

def f1(function):
    pass
    # How to get 'f2' from function?
    
def f2():
    pass

f1(f2)

-- 
René Pijlman




More information about the Python-list mailing list