while true: !!!

bowman bowman at montana.com
Mon Dec 11 09:28:10 EST 2000

Jaroslav Gergic <j_gergic at yahoo.com>
> OK, it is ugly to write the same line of code twice,
> but 'while true' or 'while 1' is very non-programmer construction
> it smells like VisualBasic GOTO.

It is an very common idiom in many languages. Get used to it.
Another variant is for (; ; ) in languages that support that style
of for iteration. And I've never used VB....

More information about the Python-list mailing list