do...until wisdom needed...
Remco Gerlich
scarblac at pino.selwerd.nl
Mon Apr 16 13:02:48 EDT 2001
Benjamin.Altman <benjamin.altman at noaa.gov> wrote in comp.lang.python:
> Any answer does not seem ideal in Python, but what about an indent concluded with an
> "until" like:
>
> # do some stuff
> # do some more stuff
> until condition == true
So how would you put that after another block?
while cond():
#bla
#bla
#bla
#do some stuff
until cond2()
That doesn't work. You need a proper non-indented block start.
Besides, it's ugly :).
--
Remco Gerlich
More information about the Python-list
mailing list