Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.042 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'syntax': 0.04; 'subject:PEP': 0.07; 'appropriate.': 0.09; 'python': 0.11; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'implemented,': 0.16; 'jumping': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'wrote:': 0.18; '(the': 0.22; '>>>': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'chris': 0.29; 'feature': 0.29; 'am,': 0.29; 'tim': 0.29; 'label': 0.30; "i'm": 0.30; '25,': 0.31; '8:30': 0.31; 'breaking': 0.31; 'chase': 0.31; 'but': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'skip:b 40': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'subject:? ': 0.60; 'break': 0.61; 'times': 0.62; 'header:Reply- To:1': 0.67; 'wish': 0.70; 'reply-to:no real name:2**0': 0.71; 'subject:this': 0.83; 'goto': 0.84; 'reply-to:addr:python.org': 0.84; '2013': 0.98 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=KrN0hwmN c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=oyR3mlnJdzkA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=5UcZ6-KuYpMA:10 a=8uR6FKqcAAAA:8 a=0e5AS5D_7SOqVm-za88A:9 a=wPNLvfGTeEIA:10 X-AUTH: mrabarnett:2500 Date: Mon, 24 Jun 2013 23:45:57 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Is this PEP-able? fwhile References: <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <20130624173050.5e16debf@bigbox.christie.dr> 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 Reply-To: python-list@python.org 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372113953 news.xs4all.nl 15864 [2001:888:2000:d::a6]:53499 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49099 On 24/06/2013 23:35, Chris Angelico wrote: > On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase > wrote: >> On 2013-06-25 07:38, Chris Angelico wrote: >>> Python has no issues with breaking out of loops, and even has >>> syntax specifically to complement it (the 'else:' clause). Use >>> break/continue when appropriate. >> >> from minor_gripes import breaking_out_of_nested_loops_to_top_level > > True. There are times I do wish for a 'goto'. But if goto were > implemented, I would also use it for jumping _into_ loops, and I'm not > sure that's going to make the feature popular :) > I think a better way would be to label the outer loop somehow and then break out of it by name.