Possible Duplicate:
Python code to get current function into a variable?
is there a convenient way to get to pointer of current function?
for example:
current_func_ref = None
def func():
current_func_ref = ___ #something need to fill
do something..
Ok this is a bit cheeky, not very generic like you might want, but here it is anyway: