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


Groups > comp.lang.python > #32089

Re: while expression feature proposal

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 <python-python-list@m.gmane.org>
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 <tjreedy@udel.edu>
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 <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.2811.1351140683.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

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


Thread

Re: while expression feature proposal Terry Reedy <tjreedy@udel.edu> - 2012-10-25 00:50 -0400
  Re: while expression feature proposal Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-10-25 11:52 +0200
    Re: while expression feature proposal Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-25 10:50 +0000
      Re: while expression feature proposal Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-10-25 13:20 +0200
      Re: while expression feature proposal Terry Reedy <tjreedy@udel.edu> - 2012-10-25 16:09 -0400
    Re: while expression feature proposal Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-25 10:44 -0600
  Re: while expression feature proposal Grant Edwards <invalid@invalid.invalid> - 2012-10-25 14:17 +0000

csiph-web