Possible Duplicate:
How do I get the name of a function or method from within a Python function or method?
How to get the function name as string in Python?
I have a function named func, I'd like to be able to get the functions name as a string.
pseudo-python :
def func () :
pass
print name(func)
This would print 'func'.