while true: !!!

bowman bowman at montana.com
Mon Dec 11 15:28:10 CET 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