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,
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com