[Python-Dev] The `for y in [x]` idiom in comprehensions

Guido van Rossum guido at python.org
Mon Feb 26 14:08:42 EST 2018


I would like to remind all wannabe language designers that grammar design
is not just solving puzzles. It's also about keeping the overall feel of
the language readable. I'm getting the idea that none of the proposals
discussed so far (whether new syntax or clever use of existing syntax)
satisfy that constraint. Sometimes a for-loop is just better.

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180226/d6b41ef7/attachment.html>


More information about the Python-Dev mailing list