Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'subject:: [': 0.03; 'python.': 0.04; 'mrab': 0.04; ':-)': 0.06; 'subject:Python': 0.06; 'python': 0.08; '>>>>': 0.09; 'accidental': 0.09; 'clearly,': 0.09; 'imho.': 0.09; 'matt': 0.09; 'readable': 0.09; 'syntax.': 0.09; 'am,': 0.12; 'subject:] ': 0.14; 'case.': 0.15; 'great.': 0.15; 'heavily': 0.15; "';'": 0.16; 'downside,': 0.16; 'exists:': 0.16; 'lan': 0.16; 'magnitude.': 0.16; 'optimizing': 0.16; 'remove.': 0.16; 'semicolon': 0.16; 'semicolons': 0.16; 'sizable': 0.16; 'syntactical': 0.16; 'workaround': 0.16; '\xa0do': 0.16; 'cc:addr:python-list': 0.16; 'syntax': 0.16; 'wrote:': 0.16; "wouldn't": 0.17; 'wed,': 0.17; '>>>': 0.18; 'programming': 0.20; 'cc:no real name:2**0': 0.20; 'seems': 0.20; "we'd": 0.21; 'header:In-Reply-To:1': 0.22; '(or': 0.23; 'indentation': 0.23; 'optional': 0.23; 'pm,': 0.24; 'changed': 0.24; 'aug': 0.24; "python's": 0.24; "i'm": 0.27; 'thu,': 0.28; 'url:mailman': 0.28; 'message-id:@mail.gmail.com': 0.29; 'print': 0.29; 'cc:addr:python.org': 0.30; 'lines': 0.30; 'cc:addr:gmail.com': 0.30; 'confusion': 0.30; 'skip:_ 40': 0.31; 'chris': 0.32; 'list': 0.32; 'coding': 0.32; 'source': 0.33; 'url:listinfo': 0.33; "i've": 0.34; 'daniel': 0.34; 'majority': 0.34; 'idea': 0.34; 'languages.': 0.34; 'core': 0.36; 'url:python': 0.36; 'but': 0.37; 'something': 0.37; 'think': 0.38; 'cc:2**2': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'case': 0.39; 'mailing': 0.39; 'more': 0.60; 'free': 0.63; 'proposal': 0.67; 'noise': 0.67; '11,': 0.68; 'glad': 0.70; 'subject:line': 0.73; 'gain': 0.74; 'joiner': 0.84; 'omission': 0.84; 'readability': 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:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=zSwBTXVDhxCqLzf8BQ6Bg9lwxeo7TwobDgHWpZvxHpg=; b=DS3U8OF8cgvaZhYbSNMDZVZPohYfgg6J0tcy1jfNFLEnyGAi4Oy+eq7965FWXan8Et GdLB/oh9DbYuAi4w33U2I6OFL8msiyrWQ8C+Xfv19gzyLB0kRbgtdjNBhDJV03IB3ZNE rejDsjgUhDwaWtiBxv0aruqabKWK3fO/17E5c= 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> Date: Thu, 11 Aug 2011 10:04:24 -0700 Subject: Re: [Python-ideas] allow line break at operators From: Daniel Greenfeld To: Jakob Bowyer Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, python-ideas , Matt Joiner 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: 91 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313082268 news.xs4all.nl 23883 [2001:888:2000:d::a6]:50967 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11223 Something like this already exists: a =3D 0 b =3D 1 if (True =3D=3D True and False =3D=3D False and a + 1 =3D=3D b and b - 1 =3D=3D a): print 'meh' So I've got no idea what this proposal is about except for the dropping of readability of Python. -1 Daniel Greenfeld On Thu, Aug 11, 2011 at 8:42 AM, Jakob Bowyer wrote: > -1 This idea seems like it would remove the true readability of > python. Personally it would create more confusion than it would > remove. > > On Thu, Aug 11, 2011 at 3:28 PM, Matt Joiner wrote: >> +0.5 >> >> The "trailing \" workaround is nonobvious. Wrapping in () is noisy and >> already heavily used by other syntactical structures. Since a final >> ':' is needed anyway, i think this would be great. >> >> if a >> =A0and b >> =A0or c: >> =A0do stuff() >> >> On Thu, Aug 11, 2011 at 11:02 PM, MRAB wrot= e: >>> On 11/08/2011 05:16, Chris Rebert wrote: >>>> >>>> On Wed, Aug 10, 2011 at 7:52 PM, Yingjie Lan =A0wro= te: >>>>> >>>>> :And if we require {} then truly free indentation should be OK too! B= ut >>>>> >>>>> :it wouldn't be Python any more. >>>>> >>>>> Of course, but not the case with ';'. Currently ';' is optional in >>>>> Python, >>>> >>>> I think of it more as that Python deigns to permit semicolons. >>>> >>>>> But '{' is used for dicts. Clearly, ';' and '{' are different in >>>>> magnitude. >>>>> >>>>> So the decision is: shall we change ';' from optional to mandatory >>>>> to allow free line splitting? >>>> >>>> Hell no, considering that the sizable majority of lines *aren't* >>>> split, which makes those semicolons completely redundant to their >>>> accompanying newlines. We'd be practicing poor Huffman coding by >>>> optimizing for the *un*common case. It would also add punctuational >>>> noise to what is otherwise an amazingly clean and readable syntax. >>>> Accidental semicolon omission is (IMO) the most irritating source of >>>> syntax (and, inadvertently, sometimes other more serious) errors in >>>> curly-braced programming languages. >>>> >>> +1 >>>> >>>> Such a core syntax feature is not going to be changed lightly (or like= ly >>>> ever). >>>> >>> I'm glad to hear that. :-) >>> >>> Although Python's use of indentation has its downside, we gain much >>> more then we lose, IMHO. >>> _______________________________________________ >>> Python-ideas mailing list >>> Python-ideas@python.org >>> http://mail.python.org/mailman/listinfo/python-ideas >>> >> _______________________________________________ >> Python-ideas mailing list >> Python-ideas@python.org >> http://mail.python.org/mailman/listinfo/python-ideas >> > _______________________________________________ > Python-ideas mailing list > Python-ideas@python.org > http://mail.python.org/mailman/listinfo/python-ideas >