Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'operator': 0.05; 'python': 0.08; 'prefix': 0.09; 'prevents': 0.09; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'operands': 0.16; 'unary': 0.16; 'wrote:': 0.16; 'header:In-Reply- To:1': 0.22; 'though.': 0.23; 'aug': 0.24; 'putting': 0.28; 'right.': 0.28; 'thu,': 0.28; 'forgot': 0.29; 'message- id:@mail.gmail.com': 0.29; 'separated': 0.30; 'chris': 0.32; 'certainly': 0.32; 'to:addr:python-list': 0.33; 'right,': 0.34; 'but': 0.37; 'steven': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'case': 0.39; 'stated': 0.67; '11,': 0.68; 'subject:line': 0.73; '12:32': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AfkwedjtrzcuqZVNDkmdJ0EhJCIKb7O5Gw9SkyrbY6c=; b=mTxYOEwSG5UwKDj69oc7p2vGl2LoHfM2/nYAG4UaQdtkYmu6l7MK0afAi2KK+0TXar pB96dNYslusiBrIq9lRRwsBUZRb2bMKjpbZgYRSRl3rP0qbAQvAfNy550Ig4Sa0GcSdq d1B8U4zOsW5O6taNMT1Flfp1Typ3dzxglXIf4= MIME-Version: 1.0 In-Reply-To: <4e4314fd$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> <4e4314fd$0$29993$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 11 Aug 2011 00:55:36 +0100 Subject: Re: allow line break at operators From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313020539 news.xs4all.nl 23983 [2001:888:2000:d::a6]:52636 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11157 On Thu, Aug 11, 2011 at 12:32 AM, Steven D'Aprano wrote: > Chris stated that putting the unary + at the end of the line > prevents "that", that being applying the unary + operator to the value on > the right. But that is not the case -- unary prefix operators in Python can > be separated from their operands by whitespace, including newlines. > Right, I forgot that. It certainly would not be normal to do it that way, though. ChrisA