A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-July/054914.html below:

[Python-Dev] while:

[Python-Dev] while: [Python-Dev] while:Martin Blais martin.blais at gmail.com
Wed Jul 20 05:13:02 CEST 2005
Hi

Today I typed something funny in the interactive interpreter:


>>> while:
  File "<stdin>", line 1
    while:
         ^
SyntaxError: invalid syntax


it got me wondering, wouldn't it be nice if

   while:
      ...

behaved as:

   while True:
      ...

Since they appeared, I started using "while True:" instead of "while
1:" for this common idiom.  I find it reveals the intention better,
but I don't like the typing.

Opinions?

cheers,
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4