On Sun, Jun 26, 2011 at 6:38 PM, ezio.melotti
<[email protected]> 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   |   [email protected]   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to