A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-May/053821.html below:

[Python-Dev] PEP 344: Exception Chaining and Embedded Tracebacks

[Python-Dev] PEP 344: Exception Chaining and Embedded Tracebacks [Python-Dev] PEP 344: Exception Chaining and Embedded TracebacksKa-Ping Yee python-dev at zesty.ca
Mon May 16 23:41:54 CEST 2005
This PEP is a concrete proposal for exception chaining, to follow
up on its mention here on Python-Dev last week as well as earlier
discussions in the past year or two.

    http://www.python.org/peps/pep-0344.html

I've tried to summarize the applications for chaining mentioned in
these discussions, survey what's available in other languages, and
come up with a precise specification.

PEP 344 proposes three standard attributes on traceback objects:

    __context__ for implicit chaining (an unexpected exception
        occurred during 'except' or 'finally' processing)

    __cause__ for explicit chaining (intentional translation or
        augmenting of exceptions, set by "raise EXC from CAUSE")

    __traceback__ to point to the traceback

Hope this is useful.  I'd like your feedback.  Thanks!


-- Ping
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4