No Do while/repeat until looping construct in python?
Erik Max Francis
max at alcyone.com
Tue Mar 11 23:39:35 EST 2003
Lars W wrote:
> Why is there no do-while looping construct in Python?
> It seems to me that such a feature is very useful.
The customary way to do this in Python is
while 1: # or while True in Python 2.2+
doSomething
if terminateCondition:
break
doSomeMore
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Mona Lisa / Come to discover / I am your daughter
\__/ Lamya
Lsystem / http://www.alcyone.com/pyos/lsystem/
A Lindenmayer systems explorer in Python.
More information about the Python-list
mailing list