Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'correct.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'underlying': 0.09; 'enigma': 0.16; 'kern': 0.16; 'unambiguous': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'usability': 0.18; "aren't": 0.21; 'header:In-Reply-To:1': 0.22; 'btw,': 0.23; 'found,': 0.23; 'optional': 0.23; 'referring': 0.23; "python's": 0.24; 'modify': 0.25; 'code': 0.26; 'interpret': 0.29; 'sorry,': 0.29; 'pm,': 0.29; 'booth': 0.30; 'humans': 0.30; 'there': 0.33; "can't": 0.33; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.34; 'to?': 0.34; 'done': 0.34; 'to:addr:python-list': 0.35; 'received:org': 0.36; 'but': 0.37; 'could': 0.38; 'to:addr:python.org': 0.40; 'world': 0.61; 'received:86': 0.63; 'our': 0.63; 'harder': 0.64; 'believe': 0.65; 'eco': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robert Kern Subject: Re: Python is readable Date: Thu, 15 Mar 2012 14:43:44 +0000 References: <4f612b19$0$1379$4fafbaef@reader2.news.tin.it> <8e72d74f-c844-4de3-8a37-f6b1fdc2291f@y27g2000yqy.googlegroups.com> <50e9ceec-40f1-4ead-b2b6-87328b30d084@ow8g2000pbc.googlegroups.com> <4f61c828$0$1390$4fafbaef@reader2.news.tin.it> <4f61d728$0$1375$4fafbaef@reader2.news.tin.it> <4f61fd0a$0$1389$4fafbaef@reader2.news.tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host86-147-15-181.range86-147.btcentralplus.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <4f61fd0a$0$1389$4fafbaef@reader2.news.tin.it> 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: 1331822643 news.xs4all.nl 6886 [2001:888:2000:d::a6]:44838 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21679 On 3/15/12 2:30 PM, Kiuhnm wrote: > On 3/15/2012 15:23, Duncan Booth wrote: >> Kiuhnm wrote: >> >>> BTW, aren't those ':' redundant? >>> >> >> They are required by the grammar, but in a sense you are correct. You could >> modify Python's grammar to make the colons optional and still keep it >> unambiguous but that would make it harder for other tools (such as text >> editors or indeed humans) to understand. > > Sorry, but I can't see how it would make it harder for humans to understand. Are > there particular situations you're referring to? There were usability studies done on one of Python's indentation-based ancestors, ABC. Those studies found, empirically, that having the colons helped people read and understand the code faster. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco