do ... while loop

Hrvoje Niksic hniksic at srce.hr
Thu Oct 14 11:22:53 EDT 1999


"Tim Peters" <tim_one at email.msn.com> writes:

>     while 1:
>         xxx
>         yyy
>         if not condition:
>             break

Actually, Python is full of `while 1' loops.  One gets used to them
after a while (and my C loops with multiple exit points tend to have
them too), but they're not really nice.  One wonders what's the point
of having a condition in the while loop if you're not to use it.  :-)




More information about the Python-list mailing list