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/2013-May/126430.html below:

[Python-Dev] PEP 409 and the stdlib

[Python-Dev] PEP 409 and the stdlib [Python-Dev] PEP 409 and the stdlibHrvoje Niksic hrvoje.niksic at avl.com
Tue May 21 09:17:29 CEST 2013
On 05/20/2013 05:15 PM, Ethan Furman wrote:
> 1)  Do nothing and be happy I use 'raise ... from None' in my own libraries
>
> 2)  Change the wording of 'During handling of the above exception, another exception occurred' (no ideas as to what at
> the moment)

The word "occurred" misleads one to think that, during handling of the 
real exception, an unrelated and unintended exception occurred.  This is 
not the case when the "raise" keyword is used.  In that case, the 
exception was intentionally *converted* from one type to another.  For 
the "raise" case a wording like the following might work better:

     The above exception was converted to the following exception:
     ...

That makes it clear that the conversion was explicit and (hopefully) 
intentional, and that the latter exception supersedes the former.

Hrvoje
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