Is this PEP-able? fwhile

Ian Kelly ian.g.kelly at gmail.com
Mon Jun 24 17:01:07 EDT 2013


On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos <fabiosantosart at gmail.com> wrote:
> This can probably be best achieved by adding to the existing for loop,
> so maybe taking advantage of the existing for...if syntax and adding
> for...while would be a better idea?

The for...if syntax only exists for comprehensions and generators.  If
we're going to add for...while for loops, then we might as well go
ahead and add for...if loops there as well.

That said, I do like this syntax better than "fwhile".



More information about the Python-list mailing list