Path: csiph.com!usenet.pasdenom.info!news.albasani.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'subject:Python': 0.05; 'written.': 0.07; 'python': 0.08; 'effect.': 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; 'url:faq': 0.09; 'enigma': 0.16; 'highlighting': 0.16; 'kern': 0.16; 'syntax': 0.16; 'wrote:': 0.18; 'slightly': 0.19; 'later': 0.19; 'header:In-Reply-To:1': 0.22; 'second': 0.28; 'interpret': 0.29; 'example': 0.29; 'pm,': 0.29; 'does': 0.32; 'header:User-Agent:1': 0.33; 'it.': 0.33; 'header:X-Complaints-To:1': 0.34; 'faq': 0.34; 'to:addr:python- list': 0.35; 'apply': 0.35; 'url:python': 0.35; 'received:org': 0.36; 'entry': 0.37; 'easier': 0.38; 'url:org': 0.39; 'tool': 0.39; 'to:addr:python.org': 0.40; 'world': 0.61; 'received:86': 0.63; 'our': 0.63; 'believe': 0.65; 'golden': 0.73; 'url:design': 0.84; '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 15:13:46 +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> <4f61fa8a$0$1381$4fafbaef@reader2.news.tin.it> <4f6202cb$0$1377$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: <4f6202cb$0$1377$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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331824442 news.xs4all.nl 6849 [2001:888:2000:d::a6]:36468 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21685 On 3/15/12 2:55 PM, Kiuhnm wrote: > On 3/15/2012 15:28, Tim Golden wrote: >> http://docs.python.org/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements > > The second one is slightly easier to read because it's syntax-highlighted. Was > that on purpose? No, it's an unintended side effect. The (automated) syntax highlighting was added to the FAQ much, much later than that entry was written. The syntax highlighting tool does not recognize the first example as Python, so it does not apply Python syntax highlighting to it. -- 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