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