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


Groups > comp.lang.python > #49095

Re: Is this PEP-able? fwhile

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <fabiosantosart@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'subject:PEP': 0.07; 'appropriate.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '-tkc': 0.16; 'to:addr:python.list': 0.16; 'to:addr:tim.thechases.com': 0.16; 'to:name:tim chase': 0.16; 'wrote:': 0.18; '(the': 0.22; 'import': 0.22; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; 'breaking': 0.31; 'received:google.com': 0.35; 'skip:b 40': 0.39; 'even': 0.60; 'subject:? ': 0.60; 'subject:this': 0.83; '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 :cc:content-type; bh=cGbm+lZdrgUO3Qob+vslkB7t2A3SRiWOnp42fKWbY7U=; b=eREA8iYAyPI7IpigQSkjjcGi/wO5WnVPS2RQme+w//uWfFgyOELecsWjF3ZM2bPWtt Qpyx+QpLqxyOlN7qH5ujmNxEM0VxNODtonCXI4R3FT7gwv2IrgMwN8+XOjiwtNSPHmIm lRgGHhsEhYyay43WzBTiL3yK4777dFUydK2M5zUZZNuhL8LayBYTuCX6xkAHwwlyrIaR /lFKnL+jVB/ONNK1qJ4tvXyqmvT1DP0BfX5qPCSWjzojoQr3goxk/FM76fUsL1R7PwIe ztfMkEZCt3tJ60DrJy4xfyavYP27pS9UQVLm8HXp4/C5b1kiG/wfVSgh+XPHx4MxJxtA Fpvw==
MIME-Version 1.0
X-Received by 10.224.167.69 with SMTP id p5mr12038514qay.110.1372113562174; Mon, 24 Jun 2013 15:39:22 -0700 (PDT)
In-Reply-To <20130624173050.5e16debf@bigbox.christie.dr>
References <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <CAPTjJmrwNyF2-J8F3ii8W4WpkrNC67+i88ODLyiqHGa_7bz0Xg@mail.gmail.com> <20130624173050.5e16debf@bigbox.christie.dr>
Date Mon, 24 Jun 2013 23:39:22 +0100
Subject Re: Is this PEP-able? fwhile
From Fábio Santos <fabiosantosart@gmail.com>
To Tim Chase <python.list@tim.thechases.com>
Content-Type multipart/alternative; boundary=089e01536e0677302204dfee15f1
Cc python-list@python.org
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.3776.1372113570.3114.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372113570 news.xs4all.nl 15961 [2001:888:2000:d::a6]:46521
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49095

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 24 Jun 2013 23:35, "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
>
> -tkc
>

for x, y in itertools.product(range(width), range(height)):

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


Thread

Re: Is this PEP-able? fwhile Fábio Santos <fabiosantosart@gmail.com> - 2013-06-24 23:39 +0100

csiph-web