Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'cpython': 0.05; 'purpose.': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'handling,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'red,': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'header:User-Agent:1': 0.23; 'error': 0.23; 'somewhere': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'code': 0.31; 'subject:the': 0.34; "i'd": 0.34; 'but': 0.35; 'throughout': 0.37; 'wrong': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'heard': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; "you're": 0.61; 'goto': 0.84; 'subject:+': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea. Date: Fri, 18 Oct 2013 08:40:47 +0100 References: <6f2b7$525f2302$5419b3e4$13466@cache1.tilbu1.nb.home.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-19-253.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382082070 news.xs4all.nl 15888 [2001:888:2000:d::a6]:54641 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57034 On 18/10/2013 00:53, Peter Cacioppi wrote: > You know, I'd heard somewhere that Goto was considered harmful.... trying to remember exactly where.... > Yep, but it's used throughout the CPython code for error handling, nothing wrong with that as it's crystal clear that you're going to one place for one purpose. Contrast that with its use in spaghetti code where you're leaping around like a naked person on an ant hill. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence