Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Is this PEP-able? fwhile (http://www.velocityreviews.com/forums/t962092-re-is-this-pep-able-fwhile.html)

Fábio Santos 06-24-2013 10:41 PM

Re: Is this PEP-able? fwhile
 
On 24 Jun 2013 22:29, "Ian Kelly" <ian.g.kelly@gmail.com> wrote:
>
> On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos <fabiosantosart@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".


Good point. Still, I don't see why for..if doesn't exist in for loops
anyway. It may be lack of foresight, but I don't understand why at all.



All times are GMT. The time now is 11:51 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.