Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; 'assign': 0.04; 'lines.': 0.05; 'subject:Python': 0.06; 'suggesting': 0.07; 'trailing': 0.09; 'subject:] ': 0.14; 'subsequent': 0.15; '"unexpected': 0.16; '(x,': 0.16; 'parentheses': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.16; 'cc:no real name:2**0': 0.20; 'header:In-Reply-To:1': 0.22; 'received:209.85.212.46': 0.23; 'received:mail- vw0-f46.google.com': 0.23; 'indentation': 0.23; 'pair': 0.23; 'pm,': 0.24; 'aug': 0.24; 'bruce': 0.24; 'guess': 0.26; "i'm": 0.27; 'function': 0.27; '(this': 0.28; 'thu,': 0.28; 'message- id:@mail.gmail.com': 0.29; '---': 0.29; 'cc:addr:python.org': 0.30; '3.x': 0.30; 'throwing': 0.30; 'actual': 0.32; 'together.': 0.32; "can't": 0.33; 'instead': 0.33; 'done': 0.34; 'someone': 0.34; 'quite': 0.34; 'received:209.85.212': 0.34; 'rather': 0.35; 'doing': 0.36; 'skip:" 10': 0.36; 'statements': 0.37; 'but': 0.37; 'especially': 0.37; 'two': 0.37; 'could': 0.38; 'think': 0.38; 'cc:2**2': 0.38; 'received:google.com': 0.38; 'experience,': 0.38; 'received:209.85': 0.38; 'getting': 0.39; 'meaning': 0.39; 'third': 0.40; 'might': 0.40; "it's": 0.40; 'extremely': 0.40; 'love': 0.62; 'comments,': 0.64; '11,': 0.68; 'want,': 0.71; 'anything,': 0.73; 'subject:line': 0.73; 'ambiguous.': 0.84; 'spaces.': 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=PIgAure7RZpXCT1aX8jxhNUAiHrMSsLM3B5fk0Ng5/o=; b=ng/6GpuOCjBQcoWgk+IZ56DsHc1AzWL6H8r7TuaN8VqBhQni4KpK/i2xviM+RsyPZT b4pzJdBMdUFQcbvPKUb13IkOvOQFZHI+/vO55m1QE1iE1Rq7mS4nQdTjX6klzefseUFk yy3FQ+psXVGl3Fi5OwrvGYXziV3JP90Sk8iVs= MIME-Version: 1.0 In-Reply-To: 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> From: Devin Jeanpierre Date: Thu, 11 Aug 2011 17:29:36 -0400 Subject: Re: [Python-ideas] allow line break at operators To: Bruce Leban Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, Paul Colomiets , 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: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313098218 news.xs4all.nl 23942 [2001:888:2000:d::a6]:44935 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11228 a =3D b, c =3D d is a pair of such statements. Howeverm indentation errors have been extremely rare in my experience, so I'm not really compelled to think it's harmful. Especially since 3.x outlaws mixing tabs and spaces. I don't love it, but I guess I prefer it to throwing parentheses and especially \ everywhere. Parentheses can be awkward and don't quite work everywhere the way one might want, and \ has that trailing space ugliness. Devin On Thu, Aug 11, 2011 at 5:21 PM, Bruce Leban wrote: > > On Thu, Aug 11, 2011 at 2:06 PM, Devin Jeanpierre > wrote: >> >> Eek no. If I was suggesting anything, it would have been a third form >> of continuation: collapsing subsequent extra-indented lines. This is >> never ambiguous. (This could be done in such a way as to permit >> comments, namely, by doing it to the tokenstream rather than to the >> actual text) > > So if I miss-indent this > a =3D b > =C2=A0 (x, y) =3D z > > instead of getting "unexpected indent" I get "SyntaxError: can't assign t= o > function call". I'm sure someone can come up with two valid statements th= at > have a different meaning when spliced together. > --- Bruce > Follow me:=C2=A0http://www.twitter.com/Vroo=C2=A0http://www.vroospeak.com > > >