[Python-Dev] PEP 3142: Add a "while" clause to generator expressions
Aahz
aahz at pythoncraft.com
Wed Jan 21 18:54:37 CET 2009
On Wed, Jan 21, 2009, Gerald Britton wrote:
>
> OK then, what is the feeling out there about extending the "for"
> syntax in general (and by extension list comprehensions and generator
> expressions) by adding an optional while clause like this:
>
> for <item> in <iterable> [while [<predicate> | not <predicate>]:
> <suite>
What I suggest is that your ideas need more thought before bringing them
to python-dev -- I think you should either go back to python-ideas or try
comp.lang.python
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Weinberg's Second Law: If builders built buildings the way programmers wrote
programs, then the first woodpecker that came along would destroy civilization.
More information about the Python-Dev
mailing list