[Python-ideas] Special keyword denoting an infinite loop

random832 at fastmail.us random832 at fastmail.us
Mon Jun 30 19:24:37 CEST 2014

On Sat, Jun 28, 2014, at 06:05, Stefan Behnel wrote:
> Adding a new keyword needs very serious reasoning, and that's a good
> thing.

For pedantry's sake, I will note that "NAME ':'" is not a valid sequence
to start a statement with today. That is, however, probably _not_ a road
anyone wants to go down if there is any other option. It's almost enough
to make one wish that Python had defined an expansive set of reserved
words as Javascript does - a set which might not contain "loop" but
would probably contain "do".

What about _just_ "while:" or "for:"?

More information about the Python-ideas mailing list