[Tutor] Getting caller name without the help of "sys._getframe(1).f_code.co_name" ?

Luke Paireepinart rabidpoobear at gmail.com
Sat Feb 13 22:38:57 CET 2010


On Sat, Feb 13, 2010 at 9:56 AM, patrice laporte <zepangolin at gmail.com>wrote:

>
> Hi,
>
> Being in an exeption of my own, I want to print the name of the caller, and
> I'm looking for a way to have it.
>
> Could you tell us exactly why you want to do this?  It seems sort of
strange.  Also couldn't you pass the caller as an argument to your function?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100213/4cbbb230/attachment.htm>


More information about the Tutor mailing list