[New-bugs-announce] [issue3108] Implicit exception chaining (PEP 3134)

Antoine Pitrou report at bugs.python.org
Sat Jun 14 01:02:34 CEST 2008


New submission from Antoine Pitrou <pitrou at free.fr>:

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.

----------
components: Interpreter Core
files: context.patch
keywords: patch
messages: 68189
nosy: pitrou
severity: normal
status: open
title: Implicit exception chaining (PEP 3134)
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file10626/context.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3108>
_______________________________________


More information about the New-bugs-announce mailing list