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


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

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

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.kamp.net!newsfeed.kamp.net!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 19:31:22 +0200
Lines 30
Message-ID <mailman.164.1459272708.28225.python-de@python.org> (permalink)
References <56F445C9.3000200@mail.de> <56F939CE.8050601@admin-box.com> <56FA79AF.6050608@chrisarndt.de> <56FA7A69.1020107@chrisarndt.de> <CA+=jLoB_FrP2_uWwiy6An4S-akTnWwxrDTM9-4irHTUG7RKtNw@mail.gmail.com> <56FAB0AF.7040807@chrisarndt.de>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de Fje8AEPkmH7ACb+y2WnzQA4/FE3b/jf071M3fcynNSHw==
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=cOfp+oGXXq+eBSUulHtgdo4ZnT7+O3Lg9a7iOuuxEEU=; b=ymZgxadz81zyh0J0AIF2xAAST2NpRn+ubKrTWLyRDQVs7rXydDlea+kU9GJuJLSczL p6lefLmhozJDWTg89aFRxuvaMdkNNrBDqCc7iHSapkl++Nxxc599PeZnQDGupCG5E2iJ Av5XOnSQU8fQ/CzI/MCuvo+eAYOG0Ohjka1FbgbGAMayo1/QezegvzVQlTQ5QES1tErL zPEGw9sL1MIDoSoqf8y9zhAtKmZx/Xqe2TDPJVffq902r/DWUaW7zHHP5QE92rRbCEOo AA486XYYBiHBpsWKzM74dvjUUHgKNqaXc9eQGNhPN7Kz1kTOTx4kyNQYqYXy4lwwnrfe qz4g==
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=cOfp+oGXXq+eBSUulHtgdo4ZnT7+O3Lg9a7iOuuxEEU=; b=EjhFM0YvdfRaBazD1ufd7xInFdBKRfiw/cAHBCndDPtpxZVwhx4wq3k/oGuK65V6Ny M1TOJHLyfoLZXLA5Mc1elLSDhxRCPLO/IWuQCj2qf3qeZt5iCV2BWdvtPIqX+YJjLnVR Ft0EGwR3DyYGTEFCptsOCjwLvFa0Sh3OnsSEZa5WoYp8zNFAiBB431BqKGDVgNjlHrSL WrPe6pzMVUVFoF/CduM90JH+HLwMrrhubNVHFLGU7uBM93Ye3Kt+2BVNJpQTMTXIaqCV pP1xdZEaP506FqfnyiE5fvtQqmRFajdfXgIGEtt/Z+19afKjc2SgLMA05DXwH4gWQ0Ql bEgw==
X-Gm-Message-State AD7BkJJZKaaFixO/IGMqlDC/pC29Yb3cGXsYgFAjsKLplR51n9mzqpgZaxliPzKRItmw3DOnyPlTrlFX1CrU1A==
X-Received by 10.157.13.9 with SMTP id 9mr2163054oti.39.1459272682348; Tue, 29 Mar 2016 10:31:22 -0700 (PDT)
In-Reply-To <56FAB0AF.7040807@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:4340

Show key headers only | View raw


1. Es sieht vielleicht nicht richtig eingerückt aus, ist es aber. Ich
habe 4 Leerzeichen für eine Einrückung genommen.
2. Danke, daran hatte ich leider nicht gedacht.

Am 29. März 2016 um 18:43 schrieb Christopher Arndt <chris@chrisarndt.de>:
> Am 29.03.2016 um 18:15 schrieb sebastian tobie:
>> Spricht etwas gegen:
>> if liste:
>>     for item in liste:
>>         #was du machen möchtest
>>     else:
>>         #fallback wenn die liste leer ist
>
> 1. Falsche Einrückung
>
>> Das müsste mit den Standard Datentypen funktionieren.
>
> 2. Aber nicht für beliebige Iteratoren und Generatoren wie die
> bisherigen Lösungen.
>
>
> Chris
>
>
>
> _______________________________________________
> python-de maillist  -  python-de@python.org
> https://mail.python.org/mailman/listinfo/python-de
>

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 19:31 +0200

csiph-web