Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.039 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'syntax': 0.04; 'subject:PEP': 0.07; 'idea?': 0.09; '24,': 0.16; 'generators.': 0.16; 'loops': 0.16; 'wrote:': 0.18; 'exists': 0.24; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'said,': 0.30; 'message- id:@mail.gmail.com': 0.30; 'probably': 0.32; "we're": 0.32; 'maybe': 0.34; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'ahead': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'subject:? ': 0.60; 'taking': 0.65; '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:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=m4qfDwYgdnQhuFhR+We4oJYtIpSzjEYnaioO+lZAz3U=; b=ml+FWv8kleicVdmUmym8tWJRgOZz/pdZwXekqKrbLkrFVir6+P3zumy7uco3ngKnaK +qKf9IVrHOZM4qIorV7wPqsqs4ccxfDbp+pTJ0jVyOhNKky6Ebwci+7FcUU+DsDK2XnI E0d3hgCpvCS+wPNMJZJztI/BGMzZFZmBXnl1++lz2A/58ZMI+xugz9c/Vi3CqGJmMLO7 ZnOYj4jjHkn53ljwT+XZNSo3cOiroKuoXlCY4b10nr1CqJ2ifClxxk0DEwZVip8uMerY kLxdmdTsEUQrZ+zibAyJRK4zWmtCpL3XITfFQJG+S99H9gV7i1efgY+Mtk34GRb08Mq5 WQWw== X-Received: by 10.68.166.5 with SMTP id zc5mr25785353pbb.16.1372107707823; Mon, 24 Jun 2013 14:01:47 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> From: Ian Kelly Date: Mon, 24 Jun 2013 15:01:07 -0600 Subject: Re: Is this PEP-able? fwhile To: Python Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372109159 news.xs4all.nl 15998 [2001:888:2000:d::a6]:60785 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49086 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".