[prev in list] [next in list] [prev in thread] [next in thread]
List: python-dev
Subject: Re: [Python-Dev] PEP 344: Exception Chaining and Embedded Tracebacks
From: Aahz <aahz () pythoncraft ! com>
Date: 2005-05-16 21:46:18
Message-ID: 20050516214618.GA23741 () panix ! com
[Download RAW message or body]
On Mon, May 16, 2005, Ka-Ping Yee wrote:
>
> 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!
I'll comment here in hopes of staving off responses from multiple
people: I don't think these should be double-underscore attributes. The
currently undocumented ``args`` attribute isn't double-underscore, and I
think that's precedent to be followed.
--
Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/
"And if that makes me an elitist...I couldn't be happier." --JMS
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic