Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'syntax': 0.04; 'anyway.': 0.05; 'subject:PEP': 0.07; 'idea?': 0.09; 'cc:addr:python-list': 0.11; '24,': 0.16; 'generators.': 0.16; 'loops': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'exists': 0.24; '\xa0if': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; '>': 0.26; 'header:In-Reply- To:1': 0.27; "doesn't": 0.30; 'said,': 0.30; 'message- id:@mail.gmail.com': 0.30; 'probably': 0.32; "we're": 0.32; 'maybe': 0.34; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'skip:& 10': 0.38; 'ahead': 0.38; 'pm,': 0.38; 'subject:? ': 0.60; 'taking': 0.65; 'to:addr:gmail.com': 0.65; 'lack': 0.78; 'subject:this': 0.83; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Szy9ZNglYBrqHh9J6Ml3A9FybYCDvNzw/5HmLHNUWnY=; b=07xksLN0rHT5GXxwtYBRrv6oSCu/nrJYElIs0awMutR0qAp62vPv31yhOvZSp6qI+O E8AIMP/zmniIF9fOogCIdKIeck4ErZu6o06TeCXcttc3CyXaCdGZcrfVstzqAoSLR9Wc zq9uV5p4hG5HhYShEleyLCu5Zox9eLT+ow6SGpdKgDEiNVWhFUU0zuPwCAbG3OGK1oTB O7n87NaoO9jh+8wtA8HjKcn7vQK2TxhwRuesm54OLPlf0jM3H2/6EgZ4dXUnwD/9V0w3 /1C7TvPF//QadCI0nJI9SNd9yC5V+OtgpBLbILP3968dq1XJcrG/I9UxUyuF0+gP3NBB 5oiw== MIME-Version: 1.0 X-Received: by 10.49.16.233 with SMTP id j9mr28891172qed.12.1372113663195; Mon, 24 Jun 2013 15:41:03 -0700 (PDT) In-Reply-To: References: <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> Date: Mon, 24 Jun 2013 23:41:03 +0100 Subject: Re: Is this PEP-able? fwhile From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Ian Kelly Content-Type: multipart/alternative; boundary=047d7bea38e27c9b0804dfee1b4d Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372113670 news.xs4all.nl 16001 [2001:888:2000:d::a6]:47939 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49096 --047d7bea38e27c9b0804dfee1b4d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 24 Jun 2013 22:29, "Ian Kelly" wrote: > > On Mon, Jun 24, 2013 at 2:34 PM, F=E1bio Santos 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. --047d7bea38e27c9b0804dfee1b4d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 24 Jun 2013 22:29, "Ian Kelly" <ian.g.kelly@gmail.com> wrote:
>
> On Mon, Jun 24, 2013 at 2:34 PM, F=E1bio 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 add= ing
> > for...while would be a better idea?
>
> The for...if syntax only exists for comprehensions and generators. =A0= 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 e= xist in for loops anyway. It may be lack of foresight, but I don't unde= rstand why at all.

--047d7bea38e27c9b0804dfee1b4d--