[Christopher J. Bottaro] >> def myFunc(): >> print __myname__ >> >>> myFunc() >> 'myFunc' Perhaps the __name__ attribute is what you want: >>> def myFunc(): print myFunc.__name__ >>> myFunc() myFunc