Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.04; 'discussing': 0.05; 'bits': 0.07; 'python': 0.08; 'ambiguity': 0.09; 'braces': 0.09; 'pointless': 0.09; 'structure.': 0.09; '"python': 0.15; 'disagree.': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; '{}"': 0.16; 'wrote:': 0.16; "wouldn't": 0.17; 'wed,': 0.17; 'header:In- Reply-To:1': 0.22; 'implicit': 0.23; 'indentation': 0.23; 'indicating': 0.23; 'pm,': 0.24; 'aug': 0.24; 'code': 0.25; 'writes:': 0.25; 'code.': 0.26; 'message-id:@mail.gmail.com': 0.29; 'to:addr:python-list': 0.33; "i've": 0.34; 'explicit': 0.34; 'uses': 0.35; 'received:209.85.161': 0.35; 'things,': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'first.': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'favor': 0.70; 'subject:line': 0.73; 'unnecessary': 0.73; 'introduce': 0.79; '10:51': 0.84; 'mistakenly': 0.84; 'ps.': 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=Urbzw8ngamm9gQK2IAucGJFIjjI/NTXkFTUXK02kCDY=; b=Mbq+URAJhkb3FImDbXafTRKkKlA4UfxLO5RoA5uYvDfNmvw7JEkrCFhTWbtjGak+4z B9wVwTQAT/fSJD44PkT3qMPJNiMLozrjydCO9Vu5cYcgrpExW9LW/rgNl5k/IoBt+dUX Hu39DrlauO7k/izN5lwIbGNx5KaylscJ/K2iU= MIME-Version: 1.0 In-Reply-To: <87fwl9hr4r.fsf@benfinney.id.au> 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> <87fwl9hr4r.fsf@benfinney.id.au> Date: Wed, 10 Aug 2011 23:42:06 +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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313016130 news.xs4all.nl 23902 [2001:888:2000:d::a6]:34692 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11151 On Wed, Aug 10, 2011 at 10:51 PM, Ben Finney wrote: > Seebs writes: >> I've seen bits of code in preprocessing-based "Python with {}" type >> things, and they still look like Python to me, only they favor >> explicit over implicit a little more strongly. > > They introduce unnecessary ambiguity: the indentation-as-structure and > braces-as-structure can then disagree. > > The ambiguity is resolved by having exactly one of indentation or braces > determining structure: Python uses indentation. In which case, braces > are pointless for indicating block structure. That's why it wouldn't be Python. It would have to use the braces and not the indentation. ChrisA PS. I mistakenly sent this to a Gilbert & Sullivan group first. Oddly enough, opera-goers are not used to discussing the relative merits of braces vs indentation in code.