Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'continuation': 0.07; 'python': 0.08; 'conceivably': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'impose': 0.16; 'lan': 0.16; 'wrote:': 0.16; 'wed,': 0.17; 'errors,': 0.18; 'header:In-Reply- To:1': 0.22; 'though.': 0.23; 'pm,': 0.24; 'aug': 0.24; 'statement': 0.25; 'described': 0.28; 'problem': 0.28; 'expressions': 0.29; 'message-id:@mail.gmail.com': 0.29; 'lines': 0.30; "it'd": 0.30; 'splitting': 0.30; 'expression': 0.32; 'yet': 0.32; 'it.': 0.33; 'to:addr:python-list': 0.33; 'trouble': 0.35; 'statements': 0.37; 'could': 0.38; 'cases,': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'finished': 0.39; 'to:addr:python.org': 0.39; 'free': 0.63; 'subject:line': 0.73 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=bHuRGMUm0PxQH049YvbBi/fDHaWjlk+Qb7IzXkajBW0=; b=G4aIq2QXUbYIj3ykrBLbaUELS5judbaXvfAyDc/zS0OFGIuhKg/nRz/gq/AYU/pmlv Cy8dxjWC/LkwQ4W7VeMkhKjQ1+GXtIEmksipSodiE+eWeQ6LFM5UUqLhHH5OmpfkXgfE VlpLBB0GroJm7nmW/N7A88T1nj1+xCp6y6qwc= MIME-Version: 1.0 In-Reply-To: <1312981104.89312.YahooMailNeo@web121520.mail.ne1.yahoo.com> References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <4e424208$0$29965$c3e8da3$5496439d@news.astraweb.com> <1312981104.89312.YahooMailNeo@web121520.mail.ne1.yahoo.com> Date: Wed, 10 Aug 2011 15:45:43 +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: 1312987547 news.xs4all.nl 23865 [2001:888:2000:d::a6]:43706 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11131 On Wed, Aug 10, 2011 at 1:58 PM, Yingjie Lan wrote: > Is it possible for python to allow free splitting of single-line statements > without the backslashes, if we impose that expressions can only be split > when it is not yet a finished expression? The trouble is that in a lot of cases, the next statement after an unfinished expression could conceivably be a continuation of it. If this were permitted, it would have to also require that the continuation lines be indented, to avoid the problem described above. It'd still have the potential to mis-diagnose errors, though. ChrisA