Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; 'example:': 0.03; 'lines.': 0.05; 'subject:Python': 0.06; 'desirable.': 0.07; 'python': 0.08; 'matt': 0.09; 'plus,': 0.09; 'subject:] ': 0.14; 'heavily': 0.15; 'indent': 0.16; 'lan': 0.16; 'syntactical': 0.16; 'workaround': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.16; 'compatible': 0.21; 'header:In-Reply-To:1': 0.22; 'breaks': 0.23; 'indentation': 0.23; 'sep': 0.23; 'pm,': 0.24; 'starts': 0.24; 'guess': 0.26; 'code,': 0.28; 'thu,': 0.28; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.30; 'received:209.85.161.46': 0.31; 'received:mail- fx0-f46.google.com': 0.31; 'expression': 0.32; 'break': 0.32; "can't": 0.33; 'checking': 0.34; 'here,': 0.35; 'received:209.85.161': 0.35; 'issue': 0.36; 'cc:2**1': 0.36; 'another': 0.37; 'from:': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'hope': 0.61; 'skip:= 50': 0.63; 'free': 0.63; 'here': 0.65; 'freedom': 0.68; 'subject:line': 0.73; 'to:addr:yahoo.com': 0.83; '11:43': 0.84; 'freely': 0.84; 'joiner': 0.84; 'structures.': 0.84 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=4UADYygaSiG0Gyfxdo2flOd1gq4Q7ZBhsKuzusdu+zU=; b=kfYu9qyEXZqltPXyo5HPNaFj0K84H9L6HTPhMC8kFO+smx7xzkercJh93vOXkPSj3X /0iPpHzc1i74EgSn6aRN+ibvH4EB33CJMvtndy9CzE5pb0u8jn4a2rPR7lg1t1fRnti9 gvOEG8NJQnJYtPVRSQw8t+W8/6+U9y3F5AeNc= MIME-Version: 1.0 In-Reply-To: <1314884634.78252.YahooMailNeo@web121507.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> <1312982377.95657.YahooMailNeo@web121508.mail.ne1.yahoo.com> <1313031175.38817.YahooMailNeo@web121515.mail.ne1.yahoo.com> <4E43D2F2.1090004@mrabarnett.plus.com> <1314884634.78252.YahooMailNeo@web121507.mail.ne1.yahoo.com> From: Matt Joiner Date: Fri, 2 Sep 2011 15:33:01 +1000 Subject: Re: [Python-ideas] allow line break at operators To: Yingjie Lan Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "python-list@python.org" , python-ideas 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314941609 news.xs4all.nl 2427 [2001:888:2000:d::a6]:37116 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12618 I guess the issue here is that you can't tell if an expression is complete without checking the indent of the following line. This is likely not desirable. On Thu, Sep 1, 2011 at 11:43 PM, Yingjie Lan wrote: > Hi Matt, > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > From: Matt Joiner > > The "trailing \" workaround is nonobvious. Wrapping in () is noisy and > already heavily used by other syntactical structures. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > How about only require indentation > to freely break lines? Here is an example: > x =3D firstpart * secondpart #line breaks here > + anotherpart #continue by indentation > + stillanother #continue on. > #until here, another line starts by dedentation > y =3D some_expression=C2=A0- another_one > All this would be completely compatible with former code, while > having almost free line breaking! Plus, indentation makes it pretty. > Really hope Python can have freedom in breaking lines. > Yingjie