[Tutor] Finding the caller

jay titleistfour at gmail.com
Thu Jul 26 17:11:51 CEST 2007


Thanks Kent and Andreas

That is exactly what I needed!  Very nice indeed...

jay


On 7/26/07, Kent Johnson <kent37 at tds.net> wrote:
>
> jay wrote:
> > Hello all,
> >
> > If I import a module, which has a bunch of simple functions in it, is
> > there an easy way to find the direct caller from inside one of those
> > functions?  I'm looking to know which script has imported and thus
> > called the library function.  Thanks!
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062
>
> Kent
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070726/c43aa078/attachment.htm 


More information about the Tutor mailing list