do...while loops
Steve Lamb
grey at despair.rpglink.com
Tue Feb 6 08:43:03 EST 2001
On Tue, 6 Feb 2001 08:28:54 -0500, Steve Holden <sholden at holdenweb.com> wrote:
>However, Python users will recognise "while 1:" instantly, and spend three
>weeks discussing on c.l.py why this is or is not the best way to express the
>concept.
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