access the name of my method inside it

james_027 cai.haibin at gmail.com
Wed Aug 1 11:06:42 CEST 2007


Hi,

for example I have this method

def my_method():
    # do something

    # how do I get the name of this method which is my_method here?

Thanks,
james




More information about the Python-list mailing list