[Python-Dev] For/while/if statements/comprehension/generator expressions unification

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 21 02:24:45 CEST 2005


Alexander Myodov wrote:

>  for i in largelist while !found:

This doesn't cover enough use cases to be worth it, IMO.
The exit condition is often buried in the middle of
other statements in the loop, not right at the
beginning.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list