You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch implements implicit except chaining (context) as per PEP-3134, or not quite. The difference is that PyErr_Set* functions do set
the __context__ attribute, otherwise I think it would make an annoying
discrepancy between exceptions generated by Python modules and
exceptions generated by C modules (especially when some parts are
written in C and others in Python, e.g. the io library).
Unimplemented are the modifications in exception reporting.
Activity
pitrou commentedon Jun 13, 2008
This patch implements implicit except chaining (context) as per PEP-3134, or not quite. The difference is that PyErr_Set* functions do set
the __context__ attribute, otherwise I think it would make an annoying
discrepancy between exceptions generated by Python modules and
exceptions generated by C modules (especially when some parts are
written in C and others in Python, e.g. the io library).
Unimplemented are the modifications in exception reporting.
gvanrossum commentedon Jun 13, 2008
http://codereview.appspot.com/2026
pitrou commentedon Jun 14, 2008
Guido, thanks for your comments. Here is a new patch addressing them.
gvanrossum commentedon Jun 14, 2008
Submitted as r64281.
We still need a doc patch and changes to the exception printing (perhaps
also to traceback.py). Please open new issues for those.
benjaminp commentedon Jun 14, 2008
See bpo-3112 and bpo-3113.