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


Groups > comp.lang.python > #32117

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 <antoon.pardon@rece.vub.ac.be>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'heavily': 0.04; 'received:134': 0.05; 'that?': 0.05; 'before.': 0.09; 'subject:while': 0.09; 'terry': 0.09; '3.3.': 0.16; 'champion': 0.16; 'discarded': 0.16; 'discuss.': 0.16; 'driscoll': 0.16; 'general.': 0.16; 'left,': 0.16; 'reedy': 0.16; 'rejected.': 0.16; 'simpson': 0.16; 'subject:expression': 0.16; 'later': 0.16; 'wrote:': 0.17; '>>>': 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; 'probably': 0.29; "i'm": 0.29; 'that.': 0.30; 'sense': 0.31; 'point': 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; 'but': 0.36; 'correctly': 0.37; 'quite': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'possible.': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'think': 0.40; 'your': 0.60; 'most': 0.61; 'interest': 0.62; 'lack': 0.71; 'obvious': 0.71; "'from'": 0.84; 'improvement': 0.84; 'pardon': 0.84; 'do:': 0.91
X-IronPort-Anti-Spam-Filtered true
X-IronPort-Anti-Spam-Result AnATAEkgiVCGuA9G/2dsb2JhbABEiGS1e4ZoAQEFeBELGAkWDwkDAgECAUUTCAKIALRbiQiLYYNJgyQDlXSFU4pqgnE
Date Thu, 25 Oct 2012 13:22:17 +0200
From Antoon Pardon <antoon.pardon@rece.vub.ac.be>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120925 Iceowl/1.0b1 Icedove/3.0.11
MIME-Version 1.0
To python-list@python.org
Subject Re: while expression feature proposal
References <50886398.5050301@tim.thechases.com> <20121024222656.GA32708@cskk.homeip.net> <5088779A.3000202@cs.wisc.edu> <k6agfp$3o0$1@ger.gmane.org>
In-Reply-To <k6agfp$3o0$1@ger.gmane.org>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
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.2837.1351164207.27098.python-list@python.org> (permalink)
Lines 46
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1351164207 news.xs4all.nl 6953 [2001:888:2000:d::a6]:47584
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32117

Show key headers only | View raw


On 25-10-12 06:50, Terry Reedy wrote:
> 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.

If I recal correctly at one point the following was accepted:

do:
    suite
while expr:
    suite

But it was later discarded because of lack of a champion or something
like that.

-- 
Antoon Pardon
 

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


Thread

Re: while expression feature proposal Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2012-10-25 13:22 +0200

csiph-web