Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #110594
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Michael Selik <michael.selik@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Language improvement: Get more from the `for .. else` clause |
| Date | Mon, 27 Jun 2016 15:06:20 +0000 |
| Lines | 8 |
| Message-ID | <mailman.35.1467039992.2358.python-list@python.org> (permalink) |
| References | <CAGtOLTfKid2EtrfKyKq9kA6205D7E5j7fAMcVfALuh6RFw4xyA@mail.gmail.com> <CAGgTfkOgOc4jrfA5-5ufRtfQECO0pDcPW7MxXRW4nx0uaq8Hng@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de SvW13gGkgHVeBwtLhwRWPQ3bo2CyAL1aI1/WYwlXX5Uw== |
| Return-Path | <michael.selik@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.104 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.80; '*S*': 0.00; 'received:mail- qk0-x22c.google.com': 0.09; '2016': 0.16; 'example?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Language': 0.16; 'wrote:': 0.16; 'email addr:gmail.com>': 0.18; 'to:2**1': 0.21; 'header:In-Reply-To:1': 0.24; 'feature': 0.24; 'mon,': 0.24; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.30; 'skip:[ 10': 0.31; 'statement': 0.32; 'received:google.com': 0.35; 'trouble': 0.35; 'necessary.': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'subject:from': 0.39; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'subject:more': 0.61; 'show': 0.62; 'more': 0.63; 'capture': 0.66; 'subject:Get': 0.66; 'subject:else': 0.84; 'victor': 0.84; 'realistic': 0.93 |
| 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=gIm9bNwPGQpv7HE4O4TJMvfvNk7yHhM4Q5/wfK2OtJg=; b=SHMy1ZClPbCiE8TouDo0pMfWU5Xs16K3/GvQhMEysYug5IRb3kLHU5V3ErbgdU6P0a 7/F+oGS72IQdiBxPF9uMri9XIyAgRFJq/yTnjlDgx4IXzVDOM214X/d39cMTc4It+KR3 l+idO6HZY+f+gG+JYSmzlMaq1HL9oo2Hi4hJ018tm0v3km+LZiuf+Kgzvuv6g+aaPCv6 ueXxrAJl+868TYpDgGpugOLI50E2cXdHBQkDMhtR249nfG0Yw5YeKMmMDEn+Aip+dV8/ kgbJabpW4ui/EjZmEgWbXngRxwfn1XaA/seAeHXxNgoiTtNC1SHumDh7l79SJZYbSUfj +ZvQ== |
| 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=gIm9bNwPGQpv7HE4O4TJMvfvNk7yHhM4Q5/wfK2OtJg=; b=AJbGYStr6e2m/Bo7/Nv7svWVz26YS1zMbdyAL3MTjvB/ZkU7xE4BwD0/CiHYgbDc/K ipnJ4DlK6DbAgsBDE1dJKY+I6NdNIj6LhOvwBn6zcd4XMflk7ycNvwfwGxLdFE+8Zd7u VVnQhAPVR1Kd/8epmsvvUG8hheKTZerb+tNmEzzvxBxFtNQE7xUOYKWzM7k7TV0oUZtJ pxSbnJCWYcatPgz784xZQzuileOa3zXRgZelbZNtOhEBd3Y5jYCE4YisUcUA+kxoAGft ve/qbTB3c8IMsUF1Su+pxTzn6iiZfYLcPc/aB4y6YdNL7ATtrkdvbn9aYxKmFysihAyT +aNQ== |
| X-Gm-Message-State | ALyK8tIlphozhl/qVkKLrDfQHEHuC0XFexmIeUCWIfnzrAQZ5XxTZlVBW40Zrok8y+U50FRxWMHStW7OA7/EYQ== |
| X-Received | by 10.55.145.67 with SMTP id t64mr24305324qkd.96.1467039989966; Mon, 27 Jun 2016 08:06:29 -0700 (PDT) |
| In-Reply-To | <CAGtOLTfKid2EtrfKyKq9kA6205D7E5j7fAMcVfALuh6RFw4xyA@mail.gmail.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 <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> |
| X-Mailman-Original-Message-ID | <CAGgTfkOgOc4jrfA5-5ufRtfQECO0pDcPW7MxXRW4nx0uaq8Hng@mail.gmail.com> |
| X-Mailman-Original-References | <CAGtOLTfKid2EtrfKyKq9kA6205D7E5j7fAMcVfALuh6RFw4xyA@mail.gmail.com> |
| Xref | csiph.com comp.lang.python:110594 |
Show key headers only | View raw
On Mon, Jun 27, 2016 at 12:53 AM Victor Savu <victor.nicolae.savu@gmail.com> wrote: > capture the [StopIteration] value in the `else` statement of the `for` loop > I'm having trouble thinking of a case when this new feature is necessary. Can you show a more realistic example?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Language improvement: Get more from the `for .. else` clause Michael Selik <michael.selik@gmail.com> - 2016-06-27 15:06 +0000 Re: Language improvement: Get more from the `for .. else` clause Quivis <quivis@domain.invalid> - 2016-06-29 00:05 +0000
csiph-web