====== Python Iteratoren ====== Iteratoren wurden eingeführt mit ===== Iterator (typing) ===== > Python 2.2 siehe auch [[https://peps.python.org/pep-0234/|PEP 234 – Iterators]] ([[https://peps.pythonlang.de/pep-0234/|DE]]) from typing import Iterable > ab Python 3.9 deprecated siehe [[https://peps.python.org/pep-0585/|PEP 585 – Type Hinting Generics In Standard Collections]] ([[https://peps.pythonlang.de/pep-0234/|DE]]) später ... ===== Iterator (collections.abc) ===== > ab Python 3.3 from collections.abc import Iterable