Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Joel Goldstick Newsgroups: comp.lang.python Subject: Re: breaking out of outer loops Date: Mon, 7 Mar 2016 19:21:31 -0500 Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 5V3sG5u3Md/ZZMY1AUEl7QPiVJ9q/kO6808T7OsHDvmg== Return-Path: 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>': 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104282 On Mon, Mar 7, 2016 at 7:13 PM, Fillmore 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://cc-baseballstats.info/