[ python-Bugs-1168746 ] frame.f_exc_type,value,traceback

SourceForge.net noreply at sourceforge.net
Mon Feb 20 14:13:03 CET 2006


Bugs item #1168746, was opened at 2005-03-22 23:07
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1168746&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Closed
Resolution: Fixed
Priority: 4
Submitted By: Armin Rigo (arigo)
>Assigned to: Georg Brandl (gbrandl)
Summary: frame.f_exc_type,value,traceback

Initial Comment:
The frame object attributes f_exc_type, f_exc_value, f_exc_traceback are misdocumented.  They are not the last exception caught by the frame, nor the one currently handled, or anything reasonable like that.

They give the last exception raised in the parent frame, and only if another exception was ever raised in the current frame (in all other cases they are None).

I very much doubt this is useful to anyone, so maybe un-publishing the attributes would be sensible, but in any case the doc needs a small fix (ref/types.html and the doc about and in inspect.py).

----------------------------------------------------------------------

Comment By: Georg Brandl (birkenfeld)
Date: 2005-07-02 10:29

Message:
Logged In: YES 
user_id=1188172

Okay, checked in patch #1230615 as Doc/ref/ref3.tex r1.125,
r1.121.2.4.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1168746&group_id=5470


More information about the Python-bugs-list mailing list