Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49097

Re: Is this PEP-able? fwhile

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
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; 'syntax': 0.04; 'subject:PEP': 0.07; 'appropriate.': 0.09; 'python': 0.11; '24,': 0.16; '4:35': 0.16; 'implemented,': 0.16; 'jumping': 0.16; 'statement.': 0.16; 'wrote:': 0.18; '(the': 0.22; '>>>': 0.22; 'import': 0.22; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'chris': 0.29; 'feature': 0.29; 'am,': 0.29; 'tim': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '25,': 0.31; '8:30': 0.31; 'breaking': 0.31; 'chase': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'to:addr:python- list': 0.38; 'pm,': 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; '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:from:date:message-id:subject:to :content-type; bh=CG53Tnx8z/VfmmHj0/MXQBmCET/kAJlj3mzgA/efVTI=; b=v88F/eG0OaAeMoeRaBk+0oSBgvNjhZx4MjByFIpzozbExSm9NywiUJC/Uqd52PQUxj PAKdqrHmoYsw+xpttrY/EhaEIA79+UywO7Ywh+IUJfeKaL9iXBNwV157FfNijKAeJSIX mCf8WOGcoKLqdwW4uCLM23p6W/lz5zAtu8mAKZz8R5UwyQ0Lif7xpAbdB0U2RPWROqk7 Hoe3bpMKS7nU4cTSLnUZA+B56d08krE2UD7iXSoylPzmgzzj/JKP+Lkm2D6LrM0ZS0GJ LDzgwT3a9epdsx6gorvc44TW7AX4UZMzsyw8P+Nfhe/AvlplQHDnbJqUaSN9/sl6ax4e yh8g==
X-Received by 10.68.189.199 with SMTP id gk7mr14828892pbc.208.1372113722900; Mon, 24 Jun 2013 15:42:02 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAPTjJmoHtrRSmag1woY5d-5=nauR40oijMbxP7Oda+Y=dH17iA@mail.gmail.com>
References <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <CAPTjJmrwNyF2-J8F3ii8W4WpkrNC67+i88ODLyiqHGa_7bz0Xg@mail.gmail.com> <20130624173050.5e16debf@bigbox.christie.dr> <CAPTjJmoHtrRSmag1woY5d-5=nauR40oijMbxP7Oda+Y=dH17iA@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Mon, 24 Jun 2013 16:41:19 -0600
Subject Re: Is this PEP-able? fwhile
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3778.1372113725.3114.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372113725 news.xs4all.nl 15895 [2001:888:2000:d::a6]:49124
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49097

Show key headers only | View raw


On Mon, Jun 24, 2013 at 4:35 PM, Chris Angelico <rosuav@gmail.com> 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 :)

You can have labeled break and continue without going all the way to a
goto statement.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Is this PEP-able? fwhile Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-24 16:41 -0600

csiph-web