Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'programmer': 0.03; 'received:134': 0.05; 'detect': 0.07; 'suddenly': 0.07; 'inserted': 0.09; 'python': 0.11; 'bug': 0.12; 'partly': 0.16; 'subject:after': 0.16; 'subject:beginner': 0.16; 'tab': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'copied': 0.24; 'read,': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'tim': 0.29; "doesn't": 0.30; 'gives': 0.31; 'accidentally': 0.31; 'end,': 0.31; 'indentation': 0.31; 'languages': 0.32; 'programmers': 0.33; 'could': 0.34; 'but': 0.35; 'really': 0.36; 'shows': 0.36; 'easily': 0.37; 'implement': 0.38; 'to:addr:python- list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'unable': 0.39; 'easy': 0.60; 'further': 0.61; 'email addr:gmail.com': 0.63; 'protection': 0.63; 'kind': 0.63; 'telling': 0.64; 'brain': 0.68; 'caused': 0.69; 'subject:day': 0.69; 'below.': 0.71; 'subject:First': 0.74; 'find.': 0.84; 'pain': 0.84; 'pardon': 0.84; 'subject:add': 0.91 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAN7zcFKGuA9G/2dsb2JhbABZw2CBPIMZAQEFeBELGAkWDwkDAgECAQ82EwYCAodxAw+wbQ1XiRSMX4J3FoQWA5YfgWuGKYYphTeDJw Date: Wed, 30 Oct 2013 13:01:45 +0100 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 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 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383134507 news.xs4all.nl 15897 [2001:888:2000:d::a6]:37192 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58028 Op 30-10-13 08:07, Tim Roberts schreef: > jonas.thornvall@gmail.com wrote: >> >> Why did Python not implement end... The end is really not necessary for >> the programming language it can be excluded, but it is a courtesy to >> the programmer and could easily be transformed to indents automaticly, >> that is removed before the compiliation/interpretation of code. > > You only say that because your brain has been poisoned by languages that > require some kind of "end". It's not necessary, and it's extra typing. 99% > of programmers do the indentation anyway, to make the program easy to read, > so why not just make it part of the syntax? That way, you don't > accidentally have the indentation not match the syntax. Because it is a pain in the ass. Now suddenly my program doesn't work because I somehow inserted a tab instead of spaces. The end would also gives extra protection against faulty manipulations. I have at one time accidently copied a function partly further below. Because python doesn't need an end, the compilor was unable to detect this was only part of a function which caused a bug which was harder to find. 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. -- Antoon Pardon