At 04:34 PM 1/4/02 -0500, Geoffrey Talvola wrote:
>def whichContext():
>         try:
>                 1/0
>         except:
>                 # here you examine the traceback object to determine 
> which context this was executed in

Actually, traceback.extract_stack() looks like it accomplishes the same 
thing, without needing the fake exception.


--

- Geoff Talvola
   [EMAIL PROTECTED]

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to