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


Groups > de.comp.lang.python > #4338

Re: [Python-de] Schleifen die ohne Durchlaufen des Schleifenkörpers beendet wurden

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From sebastian tobie <sebastiantobie1@gmail.com>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Schleifen die ohne Durchlaufen des Schleifenkörpers beendet wurden
Date Tue, 29 Mar 2016 18:15:16 +0200
Lines 8
Message-ID <mailman.161.1459268137.28225.python-de@python.org> (permalink)
References <56F445C9.3000200@mail.de> <56F939CE.8050601@admin-box.com> <56FA79AF.6050608@chrisarndt.de> <56FA7A69.1020107@chrisarndt.de>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de SZd5JBFHBeLTxM0CueWlfApww2EeJON6z8otjIZJCsGg==
Return-Path <sebastiantobie1@gmail.com>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
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 :content-transfer-encoding; bh=CzMLWUzxuqN1WKoJjLYHJAd379QVS/BjBcrzaBisDLE=; b=IVE7uU/tk7GXgIiCOTOKgDirpRss+3tIL5YkQDSx9EfjhGhIdP64qugKIrFyBTek4V E/ApVbkoQBTk/0sMkg+8kP2oMeHb/cxM02j9ZDA/PUI5IkGJXKvLN7VGq2mnSw9ryB2Q EulAaUNoYOl4Uzz3oLjzVBfHlkDJKz4gzsZGRM9R+z0tPbTITTU4fgVMPZC8P4z+/XmA Lj5PfDH4PRBupouwZpg4vlpsjWlI0y5QELqpomAIqTfKzhtCC/EsSaO3uRAC7ohQQC75 cFDCapGouDHQE51hy85SrkG0IzLI6jMmRcbjmYrLAB8KgKHM1zPkRWU2pe7whOxFO68+ g+Mw==
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:content-transfer-encoding; bh=CzMLWUzxuqN1WKoJjLYHJAd379QVS/BjBcrzaBisDLE=; b=WXcMNySa4ArMUAasS5AIwqKTp6VUzJo3t1g60MKCemR8fPdiLdOA0YSXOTOlS7JKqJ VlKOp9o/hOxaqPhX+fQGFOMVoYKeEHmcoKclTVCzGtjpd8Dbj5aQQnhkGAB2HC6ao2PC phSWSyugcXuWA3Sp0McywZBv0+qk4UI06okP75RADGFxaOPuhmrmHimEOgEbZsaxx49S hsgER0esx4iXnqQPdKuNHjOrdRG8VNhCtBHD1u3+wzdSw+NU/qz30OxSVdQTcr1pHHmd LS9Rn+fElUjwZSce0KJfcjHOmSkYL9EOEwa0tPRoooo30dKROFzMAkDqgdperoszUIMH FqPw==
X-Gm-Message-State AD7BkJKN0gBTq25vzJoEe8kQJ2IOMHK5cEpKgrQ3wLvzyXHNGNi2TBsKUAyu1H396sJpmc+AfqJwSmytxel6eg==
X-Received by 10.157.44.135 with SMTP id p7mr1160376otb.98.1459268116298; Tue, 29 Mar 2016 09:15:16 -0700 (PDT)
In-Reply-To <56FA7A69.1020107@chrisarndt.de>
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:4338

Show key headers only | View raw


Spricht etwas gegen:
if liste:
    for item in liste:
        #was du machen möchtest
    else:
        #fallback wenn die liste leer ist

Das müsste mit den Standard Datentypen funktionieren.

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de]  Schleifen die ohne Durchlaufen des Schleifenkörpers beendet wurden sebastian tobie <sebastiantobie1@gmail.com> - 2016-03-29 18:15 +0200

csiph-web