[Python-ideas] Is this PEP-able? for X in ListY while conditionZ:
M.-A. Lemburg
mal at egenix.com
Tue Jun 25 17:42:55 CEST 2013
On 25.06.2013 17:17, jimjhb at aol.com wrote:
> for X in ListY while conditionZ:
>
>
> The 'for' loop would proceed as long as conditionZ remains true.
It is not clear to me at what point in the for-loop you'd
run and check conditionZ.
IMO, this is much more readable and straight forward to understand:
for X in ListY:
if not conditionZ:
break
pass
(and it should be to your CS teachers as well ;-))
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Jun 25 2013)
>>> Python Projects, Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2013-06-18: Released mxODBC Django DE 1.2.0 ... http://egenix.com/go47
2013-07-01: EuroPython 2013, Florence, Italy ... 6 days to go
2013-07-16: Python Meeting Duesseldorf ... 21 days to go
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-ideas
mailing list