Loop until condition is true

Joseph Garvin k04jg02 at kzoo.edu
Sun Jun 19 02:57:12 CEST 2005

Peter Otten wrote:

>I found 136 occurrences of "do {" versus 754 of "while (" and 1224 of "for
>(" in the Python 2.4 source, so using these rough estimates do-while still
>qualifies as "rarely used".
That's 136 times you'd have to use an ugly hack instead. I definitely 
wouldn't mind an until or do/while.

More information about the Python-list mailing list