Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'syntax': 0.04; 'subject:PEP': 0.07; 'appropriate.': 0.09; 'python': 0.11; '>>': 0.16; 'implemented,': 0.16; 'jumping': 0.16; 'discussions': 0.16; 'wrote:': 0.18; '(the': 0.22; '>>>': 0.22; 'import': 0.22; '>>>': 0.24; 'tend': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'chris': 0.29; 'feature': 0.29; 'am,': 0.29; 'tim': 0.29; 'topic': 0.29; 'label': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '25,': 0.31; '8:30': 0.31; '>>>>': 0.31; 'breaking': 0.31; 'chase': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'list': 0.37; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'skip:b 40': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'subject:? ': 0.60; 'break': 0.61; 'times': 0.62; 'wish': 0.70; 'subject:this': 0.83; 'goto': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cwlyTI9v9hMYMsg3S7LDhu919bQ+uSC6nMMZ5ROB2p0=; b=sZs8sjbYhDSGVTF13VTcfwy1gNbN5JU3mi/vadmI0N6f0dH9Xw0oywETdyQGaGOsEP ZfXdHdwL0/nqWvY3IaCyXeBbNkWOBLKlU2mwUEmNHb9hwOoOKWg++nsDzWQ6g6YzyN5y xAcTcWIxPzqs9Zs95zVhZ6HfnNXex/rqXGOj4w5WPIKR1GJT0Ky8151+nmeuhalcznqK CqGS0+8fyf8nIX6ZPSc1AcAj15qTVBadpYFKtjW8l8KoM4tcL+zbxG3VRpH/oPh3ixVK orU+MenZwWLMjs0QJja+d3ttD3LN9ws+VxZ6jX0RJjkbAngSQe66JZLBiH1Q5wsHRn4H +DYg== MIME-Version: 1.0 X-Received: by 10.224.167.69 with SMTP id p5mr12116595qay.110.1372115201764; Mon, 24 Jun 2013 16:06:41 -0700 (PDT) In-Reply-To: <51C8CC25.1060102@mrabarnett.plus.com> References: <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <20130624173050.5e16debf@bigbox.christie.dr> <51C8CC25.1060102@mrabarnett.plus.com> Date: Tue, 25 Jun 2013 00:06:41 +0100 Subject: Re: Is this PEP-able? fwhile From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: python-list@python.org Content-Type: multipart/alternative; boundary=089e01536e063133a304dfee77ba 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: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372115209 news.xs4all.nl 15910 [2001:888:2000:d::a6]:46137 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49102 --089e01536e063133a304dfee77ba Content-Type: text/plain; charset=ISO-8859-1 On 25 Jun 2013 00:04, "MRAB" wrote: > > 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. I like how discussions on this list tend to go off topic ;) --089e01536e063133a304dfee77ba Content-Type: text/html; charset=ISO-8859-1


On 25 Jun 2013 00:04, "MRAB" <python@mrabarnett.plus.com> wrote:
>
> On 24/06/2013 23:35, Chris Angelico wrote:
>>
>> On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase
>> <python.list@tim.thechases.com> 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.

I like how discussions on this list tend to go off topic ;)

--089e01536e063133a304dfee77ba--