it's possible to get in python 2.7.3 the name of a definition like this:
def Newname(self):
    print name_of_def
> "Newname"
Thx,
pux
it's possible to get in python 2.7.3 the name of a definition like this:
def Newname(self):
    print name_of_def
> "Newname"
Thx,
pux
use __name__
def Newname():
    return 0
print Newname.__name__
