Feb. 19, 2014
11:02 p.m.
On 19 February 2014 13:34, Alejandro López Correa <alc@spika.net> wrote:
Hello,
I think adding an optional "WHILE" clause in "FOR" loops might be useful sometimes (shorter code and/or improved readability):
for #VAR# in #SEQUENCE# while #WATCHDOG_EXPRESSION#: #CODE_BLOCK#
This idea comes up repeatedly. You might want to read some of the previous discussions about it: https://mail.python.org/pipermail/python-ideas/2013-January/018969.html https://mail.python.org/pipermail/python-ideas/2009-January/002466.html https://mail.python.org/pipermail/python-ideas/2013-June/021554.html Oscar