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


Groups > comp.lang.python > #104282

Re: breaking out of outer loops

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Subject Re: breaking out of outer loops
Date Mon, 7 Mar 2016 19:21:31 -0500
Lines 28
Message-ID <mailman.10.1457396500.15725.python-list@python.org> (permalink)
References <nbl1md$1lvd$1@gioia.aioe.org> <nbl4qj$i5v$1@gioia.aioe.org> <mailman.8.1457395717.15725.python-list@python.org> <nbl5fd$ivb$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 5V3sG5u3Md/ZZMY1AUEl7QPiVJ9q/kO6808T7OsHDvmg==
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.065
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'perl,': 0.07; 'cc:addr :python-list': 0.09; 'guys.': 0.09; 'languages,': 0.15; '2016': 0.16; 'email addr:hotmail.com&gt;': 0.16; 'iteration,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:breaking': 0.16; 'wrote:': 0.16; 'language': 0.19; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'helpful.': 0.29; 'that.': 0.30; 'url:mailman': 0.30; "we're": 0.30; 'continuing': 0.32; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'next': 0.35; 'but': 0.36; 'too': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'why': 0.39; 'received:209.85.214': 0.39; 'url:mail': 0.40; 'ever': 0.60; 'your': 0.60; 'matter': 0.63; 'more': 0.63; 'mar': 0.65; 'offering': 0.66; 'foreign': 0.69; 'url:info': 0.71; 'url:htm': 0.75; 'continue.': 0.91; 'joel': 0.91; 'to:addr:hotmail.com': 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; bh=LYjABZCW+cSrkxGUbjXkFr4rikH0mtB1GXnRHV4C2oE=; b=en4FcEIGHY9CdpCI5ZT/b5wgEMgrYEpxkRDeqziKm22RA7dLMzL613eYeTE25C59ij ogLAHChSOAGjwOPfRpmr5DN0T4XE6Dfb1tGcooY15WvIFnzl92qZGheKkLzcu/ZxM7+d JM38YbElDIorhT6HUy9knYyVWOlJtAxRs0AYKftAjXDKWoJkmgUzFqXkmvprBBURULv4 XV9rWaTtArGGkPSe2vgv+CAzvPCZHkpi0U9w+xCqgDIltIVs/E0XV5kf4N9dzItwtSpx Ccehh0HAAmMIwhhwcMbARzfAQNLSdfoJXU1JzRDXn9sNI/fJmCDX6a8GShUq7CrcsJdt oWLA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=LYjABZCW+cSrkxGUbjXkFr4rikH0mtB1GXnRHV4C2oE=; b=L2qrA6BjxpGIpcD4gh1CYeYhE67ZuYIOjJ+Mt1FnJiNg9R11WGLYRSs1wnidAqeNPh 1Q8UYwlPKtR5p7fwMN057VHeMvqDyNLFBIJYMhiGFqrtmGsEOuC/GxRAH+CooSR9cGCe NQHlDL32+7jn6Ylmdbgk68qyNa2Dj0Lu9+y0t1OeFczEsWm4Pg0+2yX4m6qCtqt+z8wO iJDtxsNG854GY16R0YXdgQERyCdJ6Jj1henO3WEg0ew0An/YJz9cmBZlPvbxdbguIffj OTJwfW2VkGoPEB9amnCVgVTWWnmv0+e2Xf/Y4DRpNazBc4o9vUbbhwlIgp5Cr+qHZeA1 KfZg==
X-Gm-Message-State AD7BkJKj8GF3J1sai2khef/KotzFIMsuOuHfv2LII2is+aVvBrvzPdQNc1diMo7zU5hTp8pcJ9lU+3B2I4V8Ig==
X-Received by 10.60.57.193 with SMTP id k1mr15734593oeq.66.1457396491755; Mon, 07 Mar 2016 16:21:31 -0800 (PST)
In-Reply-To <nbl5fd$ivb$1@gioia.aioe.org>
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:104282

Show key headers only | View raw


On Mon, Mar 7, 2016 at 7:13 PM, Fillmore <fillmore_remove@hotmail.com>
wrote:

> On 3/7/2016 7:08 PM, Chris Angelico wrote:
>
>
>> Yep, which is why we're offering a variety of new paradigms. Because
>> it's ever so much easier to get your head around three than one!
>>
>> We are SO helpful, guys. So helpful. :)
>>
>
> not too dissimilarly from human languages, speaking a foreign language is
> more often than not a matter of learning to think differently...
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

I found this on break and continue.  I don't know perl, but if what you
want to do is quit continuing in a loop and go to the next iteration, then
continue will do that.
http://www.tutorialspoint.com/python/python_loop_control.htm

-- 
Joel Goldstick
http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays>
http://cc-baseballstats.info/

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


Thread

breaking out of outer loops Fillmore <fillmore_remove@hotmail.com> - 2016-03-07 18:09 -0500
  Re: breaking out of outer loops Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-07 16:17 -0700
    Re: breaking out of outer loops Fillmore <fillmore_remove@hotmail.com> - 2016-03-07 18:21 -0500
      Re: breaking out of outer loops Chris Kaynor <ckaynor@zindagigames.com> - 2016-03-07 15:42 -0800
      Re: breaking out of outer loops Chris Angelico <rosuav@gmail.com> - 2016-03-08 10:49 +1100
      Re: breaking out of outer loops Terry Reedy <tjreedy@udel.edu> - 2016-03-07 21:54 -0500
  Re: breaking out of outer loops Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2016-03-07 23:29 +0000
    Re: breaking out of outer loops Fillmore <fillmore_remove@hotmail.com> - 2016-03-07 18:40 -0500
  Re: breaking out of outer loops Chris Angelico <rosuav@gmail.com> - 2016-03-08 10:47 +1100
  Re: breaking out of outer loops Fillmore <fillmore_remove@hotmail.com> - 2016-03-07 19:02 -0500
    Re: breaking out of outer loops Chris Angelico <rosuav@gmail.com> - 2016-03-08 11:08 +1100
      Re: breaking out of outer loops Fillmore <fillmore_remove@hotmail.com> - 2016-03-07 19:13 -0500
        Re: breaking out of outer loops Joel Goldstick <joel.goldstick@gmail.com> - 2016-03-07 19:21 -0500
  Re: breaking out of outer loops Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-08 00:36 +0000
  Re: breaking out of outer loops Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-08 03:45 +0000

csiph-web