Getting class name

Andreas Neudecker a.neudecker at uni-bonn.de
Fri Aug 29 14:20:14 EDT 2003


> class XXX:
>    ...
>    method YYY(self, ...):
>       ...
>       print self.__class__.__name__

Is there a similar solution to get the name of the function or method 
you are currently "in"?


Regards


Andreas






More information about the Python-list mailing list