Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Selik Newsgroups: comp.lang.python Subject: Re: for / while else doesn't make sense Date: Wed, 15 Jun 2016 17:18:22 +0000 Lines: 11 Message-ID: References: <9e7b6ded-15ad-490a-9842-b3da5d8a048d@googlegroups.com> <575d3430$0$11108$c3e8da3@news.astraweb.com> <575e167a$0$1608$c3e8da3$5496439d@news.astraweb.com> <575f6f58$0$1591$c3e8da3$5496439d@news.astraweb.com> <036dbf77-9483-4c71-a86b-f03cbf55cc3b@googlegroups.com> <5760c795$0$1609$c3e8da3$5496439d@news.astraweb.com> <26329884-d598-4f32-87b8-d75a3d109d20@googlegroups.com> <1465998697.330207.638463505.7EA18520@webmail.messagingengine.com> <97fd5175-0cc4-449d-a56d-bf7e238cbea3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de gJ3yW306FooN34Wg8cnhQgjqKVgE/sM88aNLNR1I+Ltw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.049 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'subject:while': 0.09; 'exception': 0.13; 'wed,': 0.15; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; 'email addr:gmail.com>': 0.18; 'to:2**1': 0.21; 'stephen': 0.22; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; '15,': 0.30; 'run': 0.33; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'presence': 0.38; 'received:209': 0.38; 'received:209.85.220': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'skip:n 10': 0.62; 'subject: / ': 0.63; 'subject:else': 0.84; 'subject:sense': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=d41494IbIDftbr+D+YPjT85Z5l9FUTj6DyXaYPNEFjU=; b=cueFf8FU74YHhi9Br6Q7kIG5SumzxbjuA9z0FvclBt3dJabnRMIiBoB3JksHwycypf aWAleBVuS1Gx79Br2h239hsq3Kt54bKi6P7UyurCf2rsUUb9IO2YZxMfjjLbe+Y66ePI KjxlsAMc7rFpvXnfUonZu2oHq9FtmIJd2PW1mV+act2yRbDnJmPs1ovkKsFJBktBwqYD j1QmQbaxpzfPdSAsBlOeFNprkWV+QsGZ9V4Znmcm2z/J5d2HwvjXDlUmu4ovVqX0bxW9 dJFhjqDUR44y31BfCMJOYEE3HBjk3i3PNkykWdI3VTx5qWl7pVl5MK9C96BiFIIeJWYh r9SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=d41494IbIDftbr+D+YPjT85Z5l9FUTj6DyXaYPNEFjU=; b=bfxvkytMtCkItn7IATydbFhOFMpCUiYBDdwlloQNS299k/tHotv/8bkourEhJ/vc3J 1o5a5byH2NPzju2vy6gYcXnG+xIrxWF8asHSx9/k4S46XJUDPkZf2d/luB5044EPVSpt 5ylDx6lKPJFiupPkrfICd/RquBcz5bWHoyW02rmkTNtwxy4aEP5DhL8gfaUoGg3qU1Xb 85M4Brpa/lF4tVR05scWkzDoTbim7zXyRUgXlBm8SJNQXlcYIE4VQhbi6uv/FscPcwz9 ojXpn/4zhF7AzZsz4W0peXOujM+Wvy5zQ3QWun/pwwcjrfWW3fOKw1RDII6tKAaAXV1o 58Wg== X-Gm-Message-State: ALyK8tINh+bNO2cOnGAn1/LqAPfiXrwPooS14xkH2+O+lrxi6uoYng7wVfvxYAgXSmDUJY1vmzdRWCwy4e67Qg== X-Received: by 10.55.144.68 with SMTP id s65mr26433591qkd.209.1466011112850; Wed, 15 Jun 2016 10:18:32 -0700 (PDT) In-Reply-To: <97fd5175-0cc4-449d-a56d-bf7e238cbea3@googlegroups.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <9e7b6ded-15ad-490a-9842-b3da5d8a048d@googlegroups.com> <575d3430$0$11108$c3e8da3@news.astraweb.com> <575e167a$0$1608$c3e8da3$5496439d@news.astraweb.com> <575f6f58$0$1591$c3e8da3$5496439d@news.astraweb.com> <036dbf77-9483-4c71-a86b-f03cbf55cc3b@googlegroups.com> <5760c795$0$1609$c3e8da3$5496439d@news.astraweb.com> <26329884-d598-4f32-87b8-d75a3d109d20@googlegroups.com> <1465998697.330207.638463505.7EA18520@webmail.messagingengine.com> <97fd5175-0cc4-449d-a56d-bf7e238cbea3@googlegroups.com> Xref: csiph.com comp.lang.python:109984 On Wed, Jun 15, 2016, 10:28 AM Rustom Mody wrote: > Where did the question of "break can be written as goto" come from? > Stephen said the "else" in for-else was "unconditional". He argued that neither the presence nor absence of a break should be considered a condition, because we don't consider the occurrence or non-occurrence of an exception (goto) as a condition of whether to run the else-clause. >