do...while loops

Steve Lamb grey at
Tue Feb 6 14:43:03 CET 2001

On Tue, 6 Feb 2001 08:28:54 -0500, Steve Holden <sholden at> wrote:
>However, Python users will recognise "while 1:" instantly, and spend three
>weeks discussing on why this is or is not the best way to express the

    Henceforth I declare that the "while 1:" idiom no longer be used.  From
this day forward a new idiom will be used instead to denote an infinite loop.
When one is needed, please use "while 'this thread':" since we all know it
will never die thus providing instant recognition of its infinite nature.

         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.

More information about the Python-list mailing list