Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.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.062 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.01; 'operator': 0.03; 'languages.': 0.04; 'suddenly': 0.07; 'difference,': 0.09; 'identifier': 0.09; 'inserted': 0.09; 'spaces': 0.09; 'python': 0.11; 'incorrect': 0.16; 'inserting': 0.16; 'subject:after': 0.16; 'subject:beginner': 0.16; 'tab': 0.16; 'tabs': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'header:User- Agent:1': 0.23; 'comparing': 0.24; 'stick': 0.24; 'source': 0.25; 'second': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; "i'm": 0.30; 'that.': 0.31; 'too.': 0.31; 'languages': 0.32; 'sense': 0.34; 'editor': 0.35; 'but': 0.35; 'add': 0.35; 'shows': 0.36; 'same.': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'does': 0.39; 'visual': 0.39; 'to:addr:python.org': 0.39; 'unable': 0.39; 'days': 0.60; 'even': 0.60; 'choose': 0.64; 'pick': 0.64; 'telling': 0.64; 'more': 0.64; 'between': 0.67; 'brain': 0.68; 'subject:day': 0.69; 'subject:First': 0.74; 'pain': 0.84; 'pardon': 0.84; 'received:195.238': 0.84; 'received:195.238.6': 0.84; 'received:belgacom.be': 0.84; 'received:isp.belgacom.be': 0.84; 'tricky': 0.84; 'edwards': 0.91; 'subject:add': 0.91; 'thing,': 0.91 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAE9WcVJQyKFy/2dsb2JhbAANTMNngT2DGQEBAQQ4QBELGAkWDwkDAgECAUUTBgICiAinJYo3iRSPVhaEFgOYCpUw Date: Wed, 30 Oct 2013 19:59:42 +0100 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130922 Icedove/17.0.9 MIME-Version: 1.0 To: python-list@python.org Subject: Re: First day beginner to python, add to counter after nested loop References: <4d1c9a55-310b-41b7-8271-435fd095ce70@googlegroups.com> <7e0b17ea-3a79-45e7-aefc-795f3f34af95@googlegroups.com> <20e6a79f-2d0e-4e78-8af6-607375eca676@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383159589 news.xs4all.nl 15979 [2001:888:2000:d::a6]:40462 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58085 Op 30-10-13 16:50, Grant Edwards schreef: > On 2013-10-30, Antoon Pardon wrote: >> >> Because it is a pain in the ass. Now suddenly my program doesn't work >> because I somehow inserted a tab instead of spaces. > > Then don't do that. > > I'm only half-kidding. Inserting incorrect tokens into program source > breaks programs in all languages. The tricky bit is that in many > editors spaces and tabs look the same. You can pick an editor that > provides a visual difference, or you can pick an editor that always > does the right thing, or you can stick with it until your fingers > learn to do the right thing. But tab and spaces are not tokens. They are token seperators. You can add as many tabs and spaces at the end of a line or between an identifier and an operator and it won't make any difference.I can even write the following. a = ( b + c ) where I can freely choose to use any number of tabs and spaces at the start of the second line and python will not complain. So comparing mixing tabs and spaces with inserting an incorrect token in other languages doesn't make much sense to me. >> >> Python made it's choice and I can live with that, but telling people >> who prefer it had made an other choice that their brain is poisoned, >> only shows you are unable to see the disadvantages. > > Those of us who've been using Python for more than a few days think it > is you who are unable to see the advantages. ;) I started using python when it was still 1.5.2, so I think I am using it for more than a few days too. -- Antoon Pardon