No Do while/repeat until looping construct in python?
Evan Simpson
evan at 4-am.com
Fri Mar 14 12:02:11 EST 2003
Greg Ewing (using news.cis.dfn.de) wrote:
> I think it's a somewhat bigger deal than you make out,
> since it would bring the exit condition into a prominently
> visible place, instead of being buried and easy to miss
> at first glance.
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
Cheers,
Evan @ 4-am
More information about the Python-list
mailing list