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/2012-February/116156.html below:

[Python-Dev] PEP 409 update [was: PEP 409

[Python-Dev] PEP 409 update [was: PEP 409 - final?] [Python-Dev] PEP 409 update [was: PEP 409 - final?]Ethan Furman ethan at stoneleaf.us
Fri Feb 3 03:42:52 CET 2012
Nick Coghlan wrote:
> FWIW, I expect the implementation will *allow* "raise exc from
> Ellipsis" as an odd synonym for "raise exc". 

Are we sure we want that?  Raising from something not an exception seems 
counter-intuitive (None being the obvious exception).

> I'd want to allow
> "exc.__cause__ = Ellipsis" to reset an exception with a previously set
> __cause__ back to the default state,

Already done.  :)

> at which point the synonym
> follows from the semantics of "raise X from Y" as syntactic sugar for
> "_exc = X; _exc.__cause__ = Y; raise _exc"

I can see where it would make some sense that way, but it still seems odd.

~Ethan~
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