Howto MACRO in python ?
Sean Ross
sross at connectmail.carleton.ca
Tue Aug 12 10:08:19 EDT 2003
"Bill Loren" <lorenb2 at bezeqint.net> wrote in message
news:mailman.1060691359.31807.python-list at python.org...
> (btw I couldn't find any built-in name which correspands to the current
> function name so
> I type it myslef every trace call)
This recipe will get you the name of the function:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062
This recipe appears to be able to wrap methods (not functions) as logging
methods, which may be useful for you:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/198078
HTH
Sean
More information about the Python-list
mailing list