Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'heavily': 0.04; 'that?': 0.05; 'before.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:while': 0.09; 'terry': 0.09; '3.3.': 0.16; 'discuss.': 0.16; 'driscoll': 0.16; 'general.': 0.16; 'left,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'rejected.': 0.16; 'simpson': 0.16; 'subject:expression': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'discussion': 0.20; '3.2': 0.22; 'assignment': 0.22; 'visible': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'used,': 0.27; 'header:X-Complaints-To:1': 0.28; 'probably': 0.29; "i'm": 0.29; 'sense': 0.31; 'proposals': 0.33; 'substantial': 0.33; 'to:addr:python-list': 0.33; 'ahead': 0.35; 'nature': 0.35; 'pm,': 0.35; 'something': 0.35; 'there': 0.35; 'list.': 0.35; 'received:org': 0.36; 'but': 0.36; 'quite': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'possible.': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'most': 0.61; 'interest': 0.62; 'obvious': 0.71; "'from'": 0.84; 'improvement': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: while expression feature proposal Date: Thu, 25 Oct 2012 00:50:59 -0400 References: <50886398.5050301@tim.thechases.com> <20121024222656.GA32708@cskk.homeip.net> <5088779A.3000202@cs.wisc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: <5088779A.3000202@cs.wisc.edu> 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351140683 news.xs4all.nl 6875 [2001:888:2000:d::a6]:47489 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32089 On 10/24/2012 7:19 PM, Evan Driscoll wrote: > On 10/24/2012 05:26 PM, Cameron Simpson wrote: >> But I'm still -0 on it, because it supplants the glaringly obvious: >> >> m = ... >> >> assignment with the far less in your face: >> >> possibly-long-expr as m >> >> and I think it would get quite heavily used, to the detriment of >> assignment readability in general. At present the nature of most effects >> is at the left. An assignment is obvious on the left, an if/with/while/etc >> is visible at the left. > > In the interest of brainstorming, what about > > while VAR from EXPR: > > or something like that? I don't think I like 'from' on a couple counts, > but there's probably some word that fits. The op wondered if these proposals have been made before. They have been, and have been rejected. Some of the discussion has been on python-ideas list. But go ahead and brainstorm and discuss. Keep in mind that any new syntax has to be a substantial improvement in some sense or make something new possible. There was no new syntax in 3.2 and very little in 3.3. -- Terry Jan Reedy