why no "do : until"?
D-Man
dsh8290 at rit.edu
Mon Jan 1 16:16:44 EST 2001
On Sun, Dec 31, 2000 at 03:52:46AM +0000, Martijn Faassen wrote:
[snip]
> I suspect (and seem to recall hearing about this before) the reason is
> more prosaic; how does one indent the darn thing? :)
>
> do:
> ..
> until x > 25
>
> does not fit a pythonic pattern for statements.
>
> do:
> ..
> until x > 25
>
> doesn't either,
How about
until x > 25 :
..
;-)
This may remove the "while 1" argument for most cases too!
I-wouldn't-complain-if-it-was-added-to-the-language-but-I-won't-fight-for-it-either
-D
More information about the Python-list
mailing list