Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49096

Re: Is this PEP-able? fwhile

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 <fabiosantosart@gmail.com>
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&gt;': 0.22; 'cc:addr:python.org': 0.22; 'exists': 0.24; '\xa0if': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; '&gt;': 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 <CALwzidnADsCdNmfFsLChVq7bt9G87Rsr1DsD1M-jNmzqQ2Z0eA@mail.gmail.com>
References <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <CAA=1kxR65wqgQWQJaLvP2yx_XacEMsHiFs40rPW1UbFXYpnytA@mail.gmail.com> <CALwzidnADsCdNmfFsLChVq7bt9G87Rsr1DsD1M-jNmzqQ2Z0eA@mail.gmail.com>
Date Mon, 24 Jun 2013 23:41:03 +0100
Subject Re: Is this PEP-able? fwhile
From Fábio Santos <fabiosantosart@gmail.com>
To Ian Kelly <ian.g.kelly@gmail.com>
Content-Type multipart/alternative; boundary=047d7bea38e27c9b0804dfee1b4d
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3777.1372113670.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Is this PEP-able? fwhile Fábio Santos <fabiosantosart@gmail.com> - 2013-06-24 23:41 +0100

csiph-web