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/2005-May/053344.html below:

[Python-Dev] Pre-PEP: Unifying try-except and try-finally

[Python-Dev] Pre-PEP: Unifying try-except and try-finally [Python-Dev] Pre-PEP: Unifying try-except and try-finallyBarry Warsaw barry at python.org
Wed May 4 21:20:31 CEST 2005
On Wed, 2005-05-04 at 14:41, Tim Peters wrote:

> IIRC (and I may well not), half of people guessed wrong about whether
> an exception raised in an "except:" suite would or would not skip
> execution of the same-level "finally:" suite.

It would not, obviously <wink>.

> try:
>     1/0
> except DivisionByZero:
>     2/0
> finally:
>     print "yes or no?"
> 
> The complementary question is whether an exception in the "finally:"
> suite will be handled by the same-level "except:" suites.

It would not, obviously <wink>.

> There are obvious answers to both, of course.  The question is whether
> they're the _same_ obvious answers across responders <0.7 wink>.

It only matters that it's the same obvious answers across all responders
who are right. :)

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20050504/8599b268/attachment.pgp
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