PEP-0315--Enhanced While Loop: An idea for an alternative syntax
mk at net.mail.penguinista
Wed Feb 18 18:25:06 CET 2004
> x = foo()
> and while x != 0:
> This example actually incorporates two changes:
> 1) "while:" is equivalent to "while True:"
> 2) "and while <condition>:" is an exit from the middle of the loop,
> analogously to PEP 315.
How about "until" instead of "and while not", shorter and not new in the
x = foo()
until x == 0:
Дамјан (jabberID:damjan at bagra.net.mk)
hundred-and-one symptoms of being an internet addict:
21. Your dog has its own home page.
More information about the Python-list