No Do while/repeat until looping construct in python?
Greg Ewing (using news.cis.dfn.de)
me at privacy.net
Sun Mar 16 22:26:54 EST 2003
Evan Simpson wrote:
> Someone (I forget who, sorry) recently pointed out a cute use of
> line-continuation that could help here:
>
> while 1:
> # some code
> # blah
> if all_done:\
> break
> # more code
This isn't quite the same thing, since although
it certainly makes the "break" prominent, it
doesn't do the same for the condition guarding
it.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list