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


Groups > comp.lang.python > #32256

Re: while expression feature proposal

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <cameron@cskk.homeip.net>
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; 'python,': 0.02; 'patent': 0.09; 'subject:while': 0.09; 'cc:addr:python-list': 0.10; '"="': 0.16; 'assignment.': 0.16; 'expression.': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:202.125.174': 0.16; 'received:202.125.174.133': 0.16; 'received:boardofstudies.nsw.edu.au': 0.16; 'received:cskk.homeip.net': 0.16; 'received:edu.au': 0.16; 'received:harvey.boardofstudies.nsw.edu.au': 0.16; 'received:homeip.net': 0.16; 'received:nsw.edu.au': 0.16; 'simpson': 0.16; 'subject:expression': 0.16; 'later': 0.16; 'wrote:': 0.17; 'followed': 0.20; '(on': 0.22; 'keyboard': 0.22; 'pascal': 0.22; 'cheers,': 0.23; 'cc:no real name:2**0': 0.24; 'paul': 0.24; 'so.': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'plain': 0.27; 'priority': 0.29; "i'm": 0.29; 'good.': 0.32; "can't": 0.34; 'something': 0.35; 'compare': 0.36; 'received:au': 0.36; 'charset:us-ascii': 0.36; 'enough': 0.36; 'subject:: ': 0.38; 'where': 0.40; 'easy': 0.60; 'content- disposition:inline': 0.60; 'date,': 0.65; 'attractive': 0.78; 'one).': 0.84; 'prone': 0.91
Date Sat, 27 Oct 2012 11:23:06 +1100
From Cameron Simpson <cs@zip.com.au>
To Devin Jeanpierre <jeanpierreda@gmail.com>
Subject Re: while expression feature proposal
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <CABicbJJ073VyhsikKsqF-AhLcriAKdfd8qoTAO3B0OAyYUT-mg@mail.gmail.com>
User-Agent Mutt/1.5.21 (2010-09-15)
References <CABicbJJ073VyhsikKsqF-AhLcriAKdfd8qoTAO3B0OAyYUT-mg@mail.gmail.com>
Cc 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.2924.1351297390.27098.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1351297390 news.xs4all.nl 6892 [2001:888:2000:d::a6]:47934
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32256

Show key headers only | View raw


On 26Oct2012 19:19, Devin Jeanpierre <jeanpierreda@gmail.com> wrote:
| (I've always been partial to ":=", personally.)

I'm less so. It is hard to type (on my keyboard anyway, that's a shifted
keystroke followed by an unshifted one). I mank that up often enough
that I would resent it for something as oft used as an assignment.

Visually, yes, it's good. I was happy with it in Pascal and its like,
though I find the succinctness of plain "=" very attractive given that
it is only available on the left in Python, where it is easy to see and
not prone to mixups with == later in an expression.

Cheers,
-- 
Cameron Simpson <cs@zip.com.au>

George, discussing a patent and prior art:
"Look, this  publication has a date, the patent has a priority date,
can't you just compare them?"
Paul Sutcliffe:
"Not unless you're a lawyer."

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


Thread

Re: while expression feature proposal Cameron Simpson <cs@zip.com.au> - 2012-10-27 11:23 +1100

csiph-web