[Python-ideas] loop: statement

Mikhail V mikhailwas at gmail.com
Mon Oct 29 08:26:46 EDT 2018

See my post a month ago (29 September) in the archive with links
to some related discussions. Subject "while: for the loop".
(I don't have access to the archive now so I can't link to the post)

One proposal was exactly about the "loop" keyword:

I was proposing "while" to replace  "while True".
My opinion is that adding a new keyword just to replace
"while True:" would be too much, also it can cause
problems with syntax highlighting, some code analysis and
replacements if a variable "loop" is used. Since it was not
a keyword, the probability that someone had used such variable
can be significant.


On Sun, Oct 28, 2018 at 2:38 AM Juancarlo Añez <apalala at gmail.com> wrote:

> A `loop:` statement to replace `while True:` has probably been discussed
> at length more than once.
> Does anyone keep links to the discussions?
> TIA!
> --
> Juancarlo *Añez*
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181029/7274a488/attachment.html>

More information about the Python-ideas mailing list