[Python-Dev] For/while/if statements/comprehension/generator expressions unification (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 21 02:24:45 CEST 2005
- Previous message: [Python-Dev] For/while/if statements/comprehension/generator expressions unification
- Next message: [Python-Dev] IMPORTANT: release24-maint branch is FROZEN from 2005-09-21 00:00 UTC for 2.4.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 +--------------------------------------+
- Previous message: [Python-Dev] For/while/if statements/comprehension/generator expressions unification
- Next message: [Python-Dev] IMPORTANT: release24-maint branch is FROZEN from 2005-09-21 00:00 UTC for 2.4.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]