Is there a python equivent of __FUNC__, etc.

I do know that it is not strictly a wxPython question but thought I would chance asking - the C macros FUNC, PRETTY_FUNC, LINE are enormously useful for log messages, etc., I was just wondering if there was a python equivalent that anybody in the group was aware of?

Gadget/Steve

El 20/09/2010 11:19, GadgetSteve@live.co.uk escribi�:

I do know that it is not strictly a wxPython question but thought I
would chance asking - the C macros __FUNC__, __PRETTY_FUNC__, __LINE__
are enormously useful for log messages, etc.,

You can configure the standard python logging module for writing the file, funcname, line number, .... for each log message.
<http://docs.python.org/library/logging.html&gt;

Regards.

···

--
Oswaldo Hern�ndez