This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: frame.f_exc_type,value,traceback
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: arigo, georg.brandl, georg.brandl
Priority: low Keywords:

Created on 2005-03-22 23:07 by arigo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg24761 - (view) Author: Armin Rigo (arigo) * (Python committer) Date: 2005-03-22 23:07
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).
msg24762 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-02 10:29
Logged In: YES 
user_id=1188172

Okay, checked in patch #1230615 as Doc/ref/ref3.tex r1.125,
r1.121.2.4.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41745
2005-03-22 23:07:39arigocreate