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


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

[Python-de] Zweimal iterieren? Ehemals War die Idee mit Iteratoren/Generatoren wirklich so super?

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Thomas Güttler <guettliml@thomas-guettler.de>
Newsgroups de.comp.lang.python
Subject [Python-de] Zweimal iterieren? Ehemals War die Idee mit Iteratoren/Generatoren wirklich so super?
Date Thu, 27 Jul 2017 12:26:21 +0200
Lines 20
Message-ID <mailman.54.1501151188.3037.python-de@python.org> (permalink)
References <392f5a95-defa-0f3d-0f1a-d0b554c2fa34@thomas-guettler.de> <0c0232a2-99f7-2eb0-f5dc-547d2a84781c@web.de> <2a65ca7a-cafe-732b-68b8-ecccca9a7ee1@thomas-guettler.de>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de AdViiSihHHddyVFrw/eBiQ/06k24hya0YdvRcZx4GI2Q==
Return-Path <guettliml@thomas-guettler.de>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
In-Reply-To <0c0232a2-99f7-2eb0-f5dc-547d2a84781c@web.de>
Content-Language de-DE
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.24
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>
X-Mailman-Original-Message-ID <2a65ca7a-cafe-732b-68b8-ecccca9a7ee1@thomas-guettler.de>
X-Mailman-Original-References <392f5a95-defa-0f3d-0f1a-d0b554c2fa34@thomas-guettler.de> <0c0232a2-99f7-2eb0-f5dc-547d2a84781c@web.de>
Xref csiph.com de.comp.lang.python:4857

Show key headers only | View raw



Am 27.07.2017 um 09:10 schrieb Johannes:
> 
> Generatoren sind (neben den schon erwähnten Fällen) dann nützlich wenn man mit einem (potentiell unendlichem) Stream von 
> Daten arbeiten muss.

Ja, da hast du Recht.

Kompliziert wird es bloß wenn man nur wenige Einträge in der Iterator hat und zweimal iterieren möchte.

Das kommt bei mir häufiger vor als riesige Datenmengen.

Gruß,
   Thomas



-- 
Thomas Guettler http://www.thomas-guettler.de/

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


Thread

[Python-de] Zweimal iterieren? Ehemals War die Idee mit Iteratoren/Generatoren wirklich so super? Thomas Güttler <guettliml@thomas-guettler.de> - 2017-07-27 12:26 +0200

csiph-web