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/2009-March/087246.html below:

[Python-Dev] PEP 377 - allow __enter__() methods to skip the statement body

[Python-Dev] PEP 377 - allow __enter__() methods to skip the statement body [Python-Dev] PEP 377 - allow __enter__() methods to skip the statement bodyTristan Seligmann mithrandi at mithrandi.net
Mon Mar 16 00:05:48 CET 2009
On Mon, Mar 16, 2009 at 1:00 AM, Michael Foord
<fuzzyman at voidspace.org.uk> wrote:
> You didn't include all the code - so impossible to match the exact
> semantics. Breaking out of multiple loops with a return is a cleaner way to
> handle it IMHO.

I don't really see why this is cleaner; they're both just structured
gotos. Heck, the code even looks practically the same.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar
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