Finding the name of a function while defining it

Abhas Bhattacharya abhasbhattacharya2 at gmail.com
Tue Dec 25 21:00:38 EST 2012


While I am defining a function, how can I access the name (separately as string as well as object) of the function without explicitly naming it(hard-coding the name)?
For eg. I am writing like:
def abc():
    #how do i access the function abc here without hard-coding the name?



More information about the Python-list mailing list