PEP 315: Enhanced While Loop
Dirk Gerrits
dirk at gerrits.homeip.net
Mon May 5 10:44:47 EDT 2003
I already expessed that I like the general idea of the proposed
construct. But I agree with others that the proposed syntax is not too
clear.
Andrew Koenig wrote:
> By implication, there is no obvious reason that one could not write
>
> while <condition1>:
> <code1>
> and while <condition2>:
> <code2>
> and while <condition3>:
> <code3>
>
[snip]
>
> Looking at these examples, I find myself liking the "and while" idea more,
> because it uses (negative) indentation to mark the possible exit points.
This on the other hand seems to express the intent a lot better. Great
idea Andrew! FWIW, I'm +1 on this.
Regards,
Dirk Gerrits
More information about the Python-list
mailing list