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/2000-December/011211.html below:

[Python-Dev] Fwd: try...else

[Python-Dev] Fwd: try...else [Python-Dev] Fwd: try...elseMoshe Zadka moshez@zadka.site.co.il
28 Dec 2000 16:28:07 -0000
On Thu, 28 Dec 2000, "M.-A. Lemburg" <mal@lemburg.com> wrote:

> He does have a point however that 'return' will bypass 
> try...else and try...finally clauses. I don't think we can change
> that behaviour, though, as it would break code.

It doesn't bypass try..finally:

>>> def foo():
...     try:
...             print "hello"
...             return
...     finally:
...             print "goodbye"
...
>>> foo()
hello
goodbye




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