How can I get the function's caller?

John Machin sjmachin at lexicon.net
Thu Sep 14 08:04:36 EDT 2006


David wrote:
> Il 13 Sep 2006 00:31:47 -0700, John Machin ha scritto:
>
> > David wrote:
> >> Inside a function I need to get the function's caller's name. How can I get
> >> it?
> >>
> >
> > Check out the thread "__LINE__ and __FILE__ functionality in Python?"
> > (messages posted 2006-0813).
>
> I'll check thankyou!
> Traffic in this NG is so high that is difficult to stay uptodate.

You don't need to. Google is your friend. Google "caller name" in this
NG; it's that simple :-)

Cheers,
John




More information about the Python-list mailing list