getting name of the function you're in

Fernando Pérez fperez528 at yahoo.com
Wed May 15 13:04:19 EDT 2002


Bob Purvy wrote:

> does anyone know how to do this?  I asked our resident Python guru and
> he didn't know.  Also searched the docs reasonably thoroughly.
> 
> it's for logging debug info to a custom log file.
> 
> (I should mention that currently I'm on 2.0.  Will move to 2.2 shortly,
> so a 2.2-only answer is still useful.)

google(python current function name)



More information about the Python-list mailing list