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/2011-June/112018.html below:

[Python-Dev] [Python-checkins] cpython (3.2): #11669: rephrase footnote in the Compound Statements page.

[Python-Dev] [Python-checkins] cpython (3.2): #11669: rephrase footnote in the Compound Statements page. [Python-Dev] [Python-checkins] cpython (3.2): #11669: rephrase footnote in the Compound Statements page.Nick Coghlan ncoghlan at gmail.com
Sun Jun 26 15:55:02 CEST 2011
On Sun, Jun 26, 2011 at 6:38 PM, ezio.melotti
<python-checkins at python.org> wrote:
> -.. [#] The exception is propagated to the invocation stack only if there is no
> -   :keyword:`finally` clause that negates the exception.
> +.. [#] The exception is propagated to the invocation stack unless
> +   there is a :keyword:`finally` clause which happens to raise another
> +   exception. That new exception causes the old one to be lost.

I believe the footnote was talking about this case:

>>> def f():
...   try:
...     raise Exception()
...   finally:
...     return "What exception?"
...
>>> f()
'What exception?'

The new wording doesn't accurately reflect that.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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