Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4333
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "Sven R. Kunze" <srkunze@mail.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Schleifen die ohne Durchlaufen des Schleifenkörpers beendet wurden |
| Date | Tue, 29 Mar 2016 09:02:33 +0200 |
| Lines | 17 |
| Message-ID | <mailman.130.1459234966.28225.python-de@python.org> (permalink) |
| References | <56F445C9.3000200@mail.de> <56F939CE.8050601@admin-box.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de VYyNwyc2fN9IRrHUxJa5QgY2aq6A50+CifqBhlOgVSPA== |
| Return-Path | <srkunze@mail.de> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mail201212; t=1459234959; bh=UDBMM/1F6UorVA5u9g99WoqU5jWszgrgEltC0bI+2x0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=FDKp8FuLMQMOW/D7ec8+obdS4bCmYBdfb3aHXUzuh6dI7n7oMCO8JVtjkTHjLbBZD mzh7uBSJBw854HQj6KS7PGXICqjGgx3yjATkgLOg4ufmvgOenjrn7ZA6cB/KTwxMBn /u/pS5VdjNti2G6YV6Q2eXlu3KJluPBpnqMx9AJY= |
| In-Reply-To | <56F939CE.8050601@admin-box.com> |
| X-purgate | clean |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate-type | clean |
| X-purgate-Ad | Categorized by eleven eXpurgate (R) http://www.eleven.de |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate | clean |
| X-purgate-size | 515 |
| X-purgate-ID | 154282::1459234959-000018ED-7FABA052/0/0 |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| Xref | csiph.com de.comp.lang.python:4333 |
Show key headers only | View raw
On 28.03.2016 16:03, Daniel Troeder wrote:
> for item in list():
> print item
> if "item" not in locals():
> print "empty"
>
> Voraussetzung ist, dass der Variablenname ("item") nicht schon vorher im
> gleichen oder übergeordneten scope verwendet wird.
Interessanter Ansatz, den, soweit ich das überblicken kann, bisher noch
keiner vorgeschlagen hatte.
Die vielen Ansätze sind auch ein Grund, warum ich eine von Python direkt
zur Verfügung gestellte Lösung bevorzugen würde.
vG
Sven
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] Schleifen die ohne Durchlaufen des Schleifenkörpers beendet wurden "Sven R. Kunze" <srkunze@mail.de> - 2016-03-29 09:02 +0200
csiph-web