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-October/092686.html below:

[Python-Dev] Announcing PEP 3136

[Python-Dev] Announcing PEP 3136 [Python-Dev] Announcing PEP 3136Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 1 02:05:49 CEST 2009
Yuvgoog Greenle wrote:

> When is the else after a loop executed?
 > 1. When the loop isn't entered at all.
> 2. When the loop terminates through exhaustion of the list (does this
> include when the list was empty?)
> 3. When the loop didn't exit because of a break statement.

1 and 3 are just special cases of 2, when you include
the empty-list case. So you're making it more complicated
in your mind than it really is.

> Any chances of cleaning this one up for python 4?

I doubt that many other people will see anything
here that needs cleaning up.

-- 
Greg
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