Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!feeder3.eweka.nl!81.171.88.16.MISMATCH!eweka.nl!hq-usenetpeers.eweka.nl!193.201.147.88.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'operator': 0.05; '>>>>': 0.09; 'bind': 0.09; 'prevents': 0.09; 'am,': 0.12; '"right"': 0.16; 'later).': 0.16; 'parentheses': 0.16; 'unary': 0.16; 'cc:addr:python-list': 0.16; 'syntax': 0.16; 'wrote:': 0.16; 'wed,': 0.17; 'cc:no real name:2**0': 0.20; 'trying': 0.21; '(i.e.,': 0.21; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'aug': 0.24; 'demonstrate': 0.25; 'guess': 0.26; "i'm": 0.27; 'putting': 0.28; 'problem': 0.28; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.30; 'binding': 0.30; 'operand': 0.30; 'least': 0.31; 'received:209.85.161.46': 0.31; 'received :mail-fx0-f46.google.com': 0.31; 'chris': 0.32; 'error.': 0.32; 'does': 0.32; 'that,': 0.33; '...': 0.34; 'received:209.85.161': 0.35; 'certain': 0.35; 'but': 0.37; 'steven': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'here.': 0.66; 'cause': 0.67; 'legal': 0.70; 'subject:line': 0.73; 'so:': 0.84; '(42': 0.91; 'about,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=gLVmiHxIqpPT6qVM2Nll290TcDVLUr2D+xGJf0LF+8w=; b=GNJytwvwJfnTBUGLP2JMJqEKaefP5HodtvqZNiMzL2cGedvZmeZqIAyCbcc6YluI0q tCYL7Qc1fKJ/Yqtk3Oq+RoAUjCIVQH8+JPQie7oFJtj0S/w/8a3oSUpDvxh49uq8D8Te Mr5QpktCqdli1/poEwO35vAydcCY3SPAOMYyU= MIME-Version: 1.0 In-Reply-To: <4e4297be$0$29993$c3e8da3$5496439d@news.astraweb.com> References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <4e424208$0$29965$c3e8da3$5496439d@news.astraweb.com> <4e4297be$0$29993$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Wed, 10 Aug 2011 09:16:58 -0600 Subject: Re: allow line break at operators To: "Steven D'Aprano" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1312989610 news.xs4all.nl 23964 [2001:888:2000:d::a6]:54875 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11134 On Wed, Aug 10, 2011 at 8:37 AM, Steven D'Aprano wrote: >> Without the parentheses, this is legal but (probably) useless; it >> applies the unary + operator to the return value of those functions. >> Putting the + at the end of the previous line at least prevents that, >> since most unary operators bind to the operand on the right; > > Not so: > >>>> x =3D (42 + - > ... =A0 =A0 100) >>>> >>>> x > -58 That is still binding to the operand on the "right" (i.e., the sequentially later). And it still does not cause the problem that Chris was talking about, since without the parentheses that would be a syntax error. So I guess I'm not certain what exactly it is that you're trying to demonstrate here.