Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'suppose': 0.07; 'though:': 0.07; 'surrounded': 0.09; 'cc:addr:python-list': 0.11; 'mostly': 0.14; 'canyon': 0.16; 'invisible': 0.16; 'side.': 0.16; 'tends': 0.16; ':-)': 0.16; 'code.': 0.18; 'cc:addr:python.org': 0.22; 'propose': 0.24; 'skip': 0.24; 'cc:2**0': 0.24; 'possibly': 0.26; 'header:In-Reply-To:1': 0.27; 'characters': 0.30; 'message- id:@mail.gmail.com': 0.30; 'comments': 0.31; 'formed': 0.31; 'probably': 0.32; 'stuff': 0.32; 'received:google.com': 0.35; 'subject:new': 0.38; 'skip:& 10': 0.38; 'saves': 0.38; 'skip:& 20': 0.39; 'either': 0.39; 'space': 0.40; 'middle': 0.60; 'more': 0.64; 'bounded': 0.84; 'concept.': 0.84; 'subject:Proposal': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/dZO3kdDNuXAA6ZMlCVIu21Xnssy1vo6JGBdN79YwTA=; b=Rg77hvSGgWO8q+zs1UfL3b7B3ujY0xta/6JpCNoqf+fp7uri3qeGgiNgLZDpv88Hvp Cnq8iVjeU1V86gWoRzpkRhE2Q3jB3AKaYtYFpbJUK/B3P3235uDaFRWbAUfYl3z3r4dc RuU4EezW+ABMhGAYkYXDfIT3+N+VwI+b/++Gh4qUNnpUJq9mQwi8KMg4sVBgv+6dUvGd KcGB1kcQ2IA5IxjkzJNukAKJE5wVTtQsQODy3OV22UcHikdZGTd5XFBMUbIw1NyieFCg cAfXJbv7ajgXjwWICHrR4PVxoFJvOxaj1UPecLN3Q3dxZIFq6TSReN4CiJGXXqGGTY62 Y/Eg== MIME-Version: 1.0 X-Received: by 10.183.24.168 with SMTP id ij8mr17946753obd.15.1427489493154; Fri, 27 Mar 2015 13:51:33 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Mar 2015 15:51:33 -0500 Subject: Re: Proposal for new minor syntax From: Skip Montanaro To: jw14896.2014@my.bristol.ac.uk Cc: Python Content-Type: multipart/alternative; boundary=001a1134a2b02900b305124b4c16 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1427489496 news.xs4all.nl 2839 [2001:888:2000:d::a6]:54011 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88185 --001a1134a2b02900b305124b4c16 Content-Type: text/plain; charset=UTF-8 Interesting concept. I suppose it offers some small optimization opportunities, and clearly saves some possibly error-prone typing. You construct the object on the left-hand side, then just DUP_TOP to get its use on the RHS. A couple comments though: * "dot" is pretty invisible unless surrounded by stuff on both sides (as when used like "hello.strip()"). The canyon formed by the characters on either side, and the mostly white space in the middle tends to make it more visible. That's less the case when it's bounded by white space on one side. * Probably better to propose it on python-ideas. * Ideas are always better received when accompanied by working code. :-) Skip --001a1134a2b02900b305124b4c16 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Interesting concept. I suppose = it offers some small optimization opportunities, and clearly saves some pos= sibly error-prone typing. You construct the object on the left-hand side, t= hen just DUP_TOP to get its use on the RHS.

A couple comments though:

* "dot"= is pretty invisible unless surrounded by stuff on both sides (as when used= like "hello.strip()"). The canyon formed by the characters on ei= ther side, and the mostly white space in the middle tends to make it more v= isible. That's less the case when it's bounded by white space on on= e side.

* Probably better to propose it on python-ideas.

* Ideas are always better rece= ived when accompanied by working code. :-)
=
Skip
<= br>
--001a1134a2b02900b305124b4c16--