who is my caller?

Emile van Sebille emile at fenx.com
Tue Mar 27 10:22:15 EST 2001


Well yes, but traceback gets its info by raising an exception anyway.

--

Emile van Sebille
emile at fenx.com

---------
"Emile van Sebille" <emile at fenx.com> wrote in message
news:99q8nv$2aibn$1 at ID-11957.news.dfncis.de...
>
> "Remco Gerlich" <scarblac at pino.selwerd.nl> wrote in message
> news:slrn9c18o0.ojm.scarblac at pino.selwerd.nl...
> <snip>
> >
> > Anyways, yes, it's more like black magic in Python. There is a call
stack
> > you can inspect, but only if you just caught an exception.
> >
>
> If I'm not mistaken, with 2.0 you can directly import traceback without
> needing to generate an exception first.
>
>
> --
>
> Emile van Sebille
> emile at fenx.com
>
>





More information about the Python-list mailing list