diff --git a/installing/index.po b/installing/index.po index 88dacca..18d3d71 100644 --- a/installing/index.po +++ b/installing/index.po @@ -35,6 +35,9 @@ msgid "" "supporting community of contributors and users that also make their software " "available for other Python developers to use under open source license terms." msgstr "" +"Als beliebtes Open-Source-Entwicklungsprojekt verfügt Python über eine aktive " +"Community aus Mitwirkenden und Nutzern, die ihre Software anderen " +"Python-Entwicklern ebenfalls unter Open-Source-Lizenzbedingungen zur Verfügung stellen." msgid "" "This allows Python users to share and collaborate effectively, benefiting " @@ -42,12 +45,19 @@ msgid "" "rare!) problems, as well as potentially contributing their own solutions to " "the common pool." msgstr "" +"Dies ermöglicht es Python-Nutzern, effektiv zusammenzuarbeiten und sich " +"auszutauschen; sie profitieren von Lösungen, die andere bereits für häufige " +"(und bisweilen sogar seltene!) Probleme entwickelt haben, und können ihrerseits " +"eigene Lösungen zu diesem gemeinsamen Pool beisteuern." msgid "" "This guide covers the installation part of the process. For a guide to " "creating and sharing your own Python projects, refer to the `Python " "packaging user guide`_." msgstr "" +"Dieser Leitfaden behandelt den Installationsschritt des Prozesses. Für eine " +"Anleitung zum Erstellen und Teilen eigener Python-Projekte beachte den " +"`Python Packaging User Guide`_." msgid "" "For corporate and other institutional users, be aware that many " @@ -55,26 +65,38 @@ msgid "" "source software. Please take such policies into account when making use of " "the distribution and installation tools provided with Python." msgstr "" +"Für Unternehmen und andere institutionelle Nutzer: Bitte beachten Sie, dass " +"viele Organisationen eigene Richtlinien zur Nutzung von und zur Mitarbeit an " +"Open-"Source-Software haben. Bitte berücksichtigen Sie diese Richtlinien, wenn Sie " +"die mit Python bereitgestellten Tools für Distribution und Installation verwenden." msgid "Key terms" -msgstr "" +msgstr "Schlüsselbegriffe" msgid "" "``pip`` is the preferred installer program. Starting with Python 3.4, it is " "included by default with the Python binary installers." msgstr "" +"``pip`` ist das bevorzugte Installationsprogramm. Ab Python 3.4 ist es " +"standardmäßig in den Binär-Installationsprogrammen von Python enthalten." msgid "" "A *virtual environment* is a semi-isolated Python environment that allows " "packages to be installed for use by a particular application, rather than " "being installed system wide." msgstr "" +"Eine *virtuelle Umgebung* ist eine teilisolierte Python-Umgebung, die es " +"ermöglicht, Pakete für die Verwendung durch eine bestimmte Anwendung zu " +"installieren, anstatt sie systemweit zu installieren." msgid "" "``venv`` is the standard tool for creating virtual environments, and has " "been part of Python since Python 3.3. Starting with Python 3.4, it defaults " "to installing ``pip`` into all created virtual environments." msgstr "" +"``venv`` ist das Standardwerkzeug zum Erstellen virtueller Umgebungen und ist " +"seit Python 3.3 Bestandteil von Python. Ab Python 3.4 wird standardmäßig ``pip`` " +"in allen erstellten virtuellen Umgebungen installiert.“ msgid "" "``virtualenv`` is a third party alternative (and predecessor) to ``venv``. " @@ -82,11 +104,19 @@ msgid "" "3.4, which either don't provide ``venv`` at all, or aren't able to " "automatically install ``pip`` into created environments." msgstr "" +"``virtualenv`` ist eine Alternative von Drittanbietern (und Vorgänger) " +"zu ``venv``. Es ermöglicht die Verwendung virtueller Umgebungen mit " +"Python-Versionen vor 3.4, die entweder gar kein ``venv`` bereitstellen oder " +"nicht in der Lage sind, ``pip`` automatisch in den erstellten Umgebungen zu " +"installieren.“ msgid "" "The `Python Package Index `__ is a public repository of " "open source licensed packages made available for use by other Python users." msgstr "" +"Der `Python Package Index `__ ist eine öffentliche Fundgrube " +"für Pakete unter Open-Source-Lizenzen, die anderen Python-Nutzern zur Verfügung " +"gestellt werden." msgid "" "the `Python Packaging Authority `__ is the group of " @@ -95,6 +125,12 @@ msgid "" "file format standards. They maintain a variety of tools, documentation, and " "issue trackers on `GitHub `__." msgstr "" +"Die `Python Packaging Authority `__ ist die Gruppe " +"von Entwicklern und Dokumentationsautoren, die für die Wartung und " +"Weiterentwicklung der Standard-Packaging-Werkzeuge sowie der zugehörigen " +"Standards für Metadaten und Dateiformate verantwortlich ist. Sie pflegt " +"eine Vielzahl von Werkzeugen, Dokumentationen und Problemverfolgern auf " +"`GitHub `__." msgid "" "``distutils`` is the original build and distribution system first added to " @@ -104,42 +140,62 @@ msgid "" "library, but its name lives on in other ways (such as the name of the " "mailing list used to coordinate Python packaging standards development)." msgstr "" +"``distutils`` ist das ursprüngliche Build- und Distributionssystem, das 1998 " +"erstmals in die Python-Standardbibliothek aufgenommen wurde. Auch wenn die " +"direkte Verwendung von ``distutils`` schrittweise eingestellt wird, legte es " +"den Grundstein für die heutige Infrastruktur zur Paketierung und Verteilung; " +"es bleibt nicht nur Bestandteil der Standardbibliothek, sondern sein Name lebt " +"auch auf andere Weise fort (etwa als Name der Mailingliste, die zur Koordinierung " +"der Entwicklung von Standards für die Python-Paketierung dient).“ msgid "" "The use of ``venv`` is now recommended for creating virtual environments." msgstr "" +"Die Verwendung von ``venv`` wird nun für das Erstellen virtueller Umgebungen empfohlen." msgid "" "`Python Packaging User Guide: Creating and using virtual environments " "`__" msgstr "" +"`Python Packaging User Guide: Erstellen und Verwenden virtueller Umgebungen " +"`__" msgid "Basic usage" -msgstr "" +msgstr "Grundlegende Verwendung" msgid "" "The standard packaging tools are all designed to be used from the command " "line." msgstr "" +"Die Standard-Paketierungswerkzeuge sind alle für die Verwendung über " +"die Befehlszeile konzipiert." msgid "" "The following command will install the latest version of a module and its " "dependencies from the Python Package Index::" msgstr "" +"Der folgende Befehl installiert die neueste Version eines Moduls und dessen " +"Abhängigkeiten vom Python Package Index::" msgid "python -m pip install SomePackage" -msgstr "" +msgstr "python -m pip install SomePackage" msgid "" "For POSIX users (including macOS and Linux users), the examples in this " "guide assume the use of a :term:`virtual environment`." msgstr "" +"Für POSIX-Anwender (einschließlich macOS- und Linux-Nutzern) setzen " +"die Beispiele in diesem Leitfaden die Verwendung einer :term:`virtuellen " +"Umgebung` voraus." msgid "" "For Windows users, the examples in this guide assume that the option to " "adjust the system PATH environment variable was selected when installing " "Python." msgstr "" +"Für Windows-Benutzer setzen die Beispiele in dieser Anleitung voraus, " +"dass bei der Installation von Python die Option zur Anpassung der " +"System-Umgebungsvariablen PATH ausgewählt wurde." msgid "" "It's also possible to specify an exact or minimum version directly on the " @@ -147,67 +203,90 @@ msgid "" "other special character which get interpreted by shell, the package name and " "the version should be enclosed within double quotes::" msgstr "" +"Es ist auch möglich, eine genaue oder minimale Version direkt auf der Befehlszeile " +"anzugeben. Bei Verwendung von Vergleichsoperatoren wie ``>``, ``<`` oder anderen „ +"Sonderzeichen, die von der Shell interpretiert werden, sollte der Paketname und “ +"die Version in doppelten Anführungszeichen gesetzt werden::“ msgid "" "python -m pip install SomePackage==1.0.4 # specific version\n" "python -m pip install \"SomePackage>=1.0.4\" # minimum version" msgstr "" +"python -m pip install SomePackage==1.0.4 # speziische Version\n" +"python -m pip install \"SomePackage>=1.0.4\" # mindestens geforderte Version" msgid "" "Normally, if a suitable module is already installed, attempting to install " "it again will have no effect. Upgrading existing modules must be requested " "explicitly::" msgstr "" +"Wenn ein geeignetes Modul bereits installiert ist, hat ein erneuter " +"Installationsversuch normalerweise keine Auswirkung. Die Aktualisierung " +"vorhandener Module muss ausdrücklich angefordert werden::" msgid "python -m pip install --upgrade SomePackage" -msgstr "" +msgstr "python -m pip install --upgrade SomePackage" msgid "" "More information and resources regarding ``pip`` and its capabilities can be " "found in the `Python Packaging User Guide `__." msgstr "" +"Weitere Informationen und Ressourcen zu „pip“ und dessen Funktionen finden sich " +"im `Python Packaging User Guide `__." msgid "" "Creation of virtual environments is done through the :mod:`venv` module. " "Installing packages into an active virtual environment uses the commands " "shown above." msgstr "" +"Virtuelle Umgebungen werden mithilfe des Moduls :mod:`venv` erstellt. " +"Für die Installation von Paketen in einer aktiven virtuellen Umgebung " +"werden die oben gezeigten Befehle verwendet." msgid "" "`Python Packaging User Guide: Installing Python Distribution Packages " "`__" msgstr "" +"`Python Packaging User Guide: Installation von Python-Distributionspaketen " +"`__" msgid "How do I ...?" -msgstr "" +msgstr "Wie mach ich es ...?" msgid "These are quick answers or links for some common tasks." msgstr "Dies sind schnelle Antworten oder Links für übliche Aufgaben." msgid "... install ``pip`` in versions of Python prior to Python 3.4?" -msgstr "" +msgstr "... Installation von ``pip`` in Versionen von Python vor Python 3.4?" msgid "" "Python only started bundling ``pip`` with Python 3.4. For earlier versions, " "``pip`` needs to be \"bootstrapped\" as described in the Python Packaging " "User Guide." msgstr "" +"Python begann erst mit Version 3.4 damit, ``pip`` mitzuliefern. Bei " +"früheren Versionen muss ``pip`` \"von Hand\“ installiert werden, " +"wie im „Python Packaging User Guide“ beschrieben." msgid "" "`Python Packaging User Guide: Requirements for Installing Packages `__" msgstr "" +"`Python Packaging-Benutzerhandbuch: Anforderungen für die Installation von Paketen " +"`__“ msgid "... install packages just for the current user?" -msgstr "" +msgstr "... Pakete nur für den aktuellen Benutzer installieren?" msgid "" "Passing the ``--user`` option to ``python -m pip install`` will install a " "package just for the current user, rather than for all users of the system." msgstr "" +"Die Übergabe der Option ``--user`` an ``python -m pip install`` installiert " +"ein Paket nur für den aktuellen Benutzer, anstatt für alle Benutzer des Systems." msgid "... install scientific Python packages?" -msgstr "" +msgstr "... wissenschaftliche Python-Pakete installieren?" msgid "" "A number of scientific Python packages have complex binary dependencies, and " @@ -216,20 +295,30 @@ msgid "" "means `__ rather than attempting to " "install them with ``pip``." msgstr "" +"Eine Reihe wissenschaftlicher Python-Pakete weist komplexe binäre Abhängigkeiten " +"auf und lässt sich derzeit nicht ohne Weiteres direkt mit ``pip`` installieren. " +"Für Anwender ist es zum jetzigen Zeitpunkt oft einfacher, diese Pakete auf " +"`anderem Wege wie `__ zu installieren, " +"anstatt zu versuchen, sie mit ``pip`` zu installieren." msgid "" "`Python Packaging User Guide: Installing Scientific Packages `__" msgstr "" +"Python Packaging User Guide: Installation wissenschaftlicher Pakete " +"“ msgid "... work with multiple versions of Python installed in parallel?" -msgstr "" +msgstr "...mit mehreren parallel installierten Python-Versionen arbeiten?" msgid "" "On Linux, macOS, and other POSIX systems, use the versioned Python commands " "in combination with the ``-m`` switch to run the appropriate copy of " "``pip``::" msgstr "" +"Verwenden Sie unter Linux, macOS und anderen POSIX-Systemen die versionsspezifischen " +"Python-Befehle in Kombination mit der Option ``-m``, um die entsprechende Kopie von " +"``pip`` auszuführen::" msgid "" "python2 -m pip install SomePackage # default Python 2\n" @@ -237,14 +326,20 @@ msgid "" "python3 -m pip install SomePackage # default Python 3\n" "python3.4 -m pip install SomePackage # specifically Python 3.4" msgstr "" +"python2 -m pip install SomePackage # Standard Python 2\n" +"python2.7 -m pip install SomePackage # spezielles Python 2.7\n" +"python3 -m pip install SomePackage # Standard Python 3\n" +"python3.4 -m pip install SomePackage # spezielles Python 3.4" msgid "Appropriately versioned ``pip`` commands may also be available." -msgstr "" +msgstr "Möglicherweise sind auch entsprechend versionierte ``pip``-Befehle verfügbar." msgid "" "On Windows, use the ``py`` Python launcher in combination with the ``-m`` " "switch::" msgstr "" +"Verwenden Sie unter Windows den Python-Launcher ``py`` in Kombination mit " +"der Option ``-m``::" msgid "" "py -2 -m pip install SomePackage # default Python 2\n" @@ -252,12 +347,16 @@ msgid "" "py -3 -m pip install SomePackage # default Python 3\n" "py -3.4 -m pip install SomePackage # specifically Python 3.4" msgstr "" +"py -2 -m pip install SomePackage # Standard Python 2\n" +"py -2.7 -m pip install SomePackage # spezielles Python 2.7\n" +"py -3 -m pip install SomePackage # Standard Python 3\n" +"py -3.4 -m pip install SomePackage # spezielles Python 3.4" msgid "Common installation issues" -msgstr "" +msgstr "Häufige Installationsprobleme" msgid "Installing into the system Python on Linux" -msgstr "" +msgstr "Installation in das System-Python unter Linux" msgid "" "On Linux systems, a Python installation will typically be included as part " @@ -266,37 +365,51 @@ msgid "" "package manager and other components of the system if a component is " "unexpectedly upgraded using ``pip``." msgstr "" +"Auf Linux-Systemen ist eine Python-Installation üblicherweise Bestandteil " +"der Distribution. Eine Installation in diese Python-Umgebung erfordert " +"Root-Zugriff auf das System und kann die Funktionsweise des System-Paketmanagers " +"sowie anderer Systemkomponenten beeinträchtigen, falls eine Komponente unerwartet " +"mittels ``pip`` aktualisiert wird." msgid "" "On such systems, it is often better to use a virtual environment or a per-" "user installation when installing packages with ``pip``." msgstr "" +"Auf solchen Systemen ist es bei der Installation von Paketen mit ``pip`` " +"oft besser, eine virtuelle Umgebung oder eine benutzerbezogene Installation " +"zu verwenden." msgid "Pip not installed" -msgstr "" +msgstr "Pip ist nicht installiert." msgid "" "It is possible that ``pip`` does not get installed by default. One potential " "fix is::" msgstr "" +"Es ist möglich, dass „pip“ nicht standardmäßig installiert wird. Eine mögliche Lösung ist::" msgid "python -m ensurepip --default-pip" -msgstr "" +msgstr "python -m ensurepip --default-pip" msgid "" "There are also additional resources for `installing pip. `__" msgstr "" +"Es gibt auch zusätzliche Ressourcen zur `Installation von pip. " +"`__" msgid "Installing binary extensions" -msgstr "" +msgstr "Installation von Binärerweiterungen" msgid "" "Python has typically relied heavily on source based distribution, with end " "users being expected to compile extension modules from source as part of the " "installation process." msgstr "" +"Python hat sich typischerweise stark auf die Verteilung im Quellcode gestützt, " +"wobei von Endanwendern erwartet wurde, dass sie Erweiterungsmodule im Rahmen " +"des Installationsprozesses aus dem Quellcode kompilieren." msgid "" "With the introduction of support for the binary ``wheel`` format, and the " @@ -305,6 +418,11 @@ msgid "" "more regularly able to install pre-built extensions rather than needing to " "build them themselves." msgstr "" +"Mit der Einführung der Unterstützung für das binäre „Wheel“-Format und der " +"Möglichkeit, Wheels – zumindest für Windows und macOS – über den " +"Python Package Index zu veröffentlichen, dürfte dieses Problem im Laufe " +"der Zeit abnehmen; denn Nutzer können dann häufiger vorgefertigte Erweiterungen " +"installieren, anstatt diese selbst kompilieren zu müssen." msgid "" "Some of the solutions for installing `scientific software `__, die noch nicht als vorgefertigtes " +"``Wheel`` verfügbar sind, können auch dabei helfen, andere Binärerweiterungen zu " +"erhalten, ohne dass es erforderlich ist die Binärerweiterungen lokal zu erstellen.“ msgid "" "`Python Packaging User Guide: Binary Extensions `__" msgstr "" +"Python Packaging User Guide: Binäre Erweiterungen " +"`__“ diff --git a/library/functions.po b/library/functions.po index d5fbd00..3d034c3 100644 --- a/library/functions.po +++ b/library/functions.po @@ -22,304 +22,315 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" msgid "Built-in Functions" -msgstr "" +msgstr "Integrierte Funktionen" msgid "" "The Python interpreter has a number of functions and types built into it " "that are always available. They are listed here in alphabetical order." msgstr "" +"Der Python-Interpreter verfügt über eine Reihe integrierter Funktionen und Typen," +"die jederzeit verfügbar sind. Sie sind hier in alphabetischer Reihenfolge aufgeführt." msgid "**A**" -msgstr "" +msgstr "**A**" msgid ":func:`abs`" -msgstr "" +msgstr ":func:`abs`" msgid ":func:`aiter`" -msgstr "" +msgstr ":func:`aiter`" msgid ":func:`all`" -msgstr "" +msgstr ":func:`all`" msgid ":func:`anext`" -msgstr "" +msgstr ":func:`anext`" msgid ":func:`any`" -msgstr "" +msgstr ":func:`any`" msgid ":func:`ascii`" -msgstr "" +msgstr ":func:`ascii`" msgid "**B**" -msgstr "" +msgstr "**B**" msgid ":func:`bin`" -msgstr "" +msgstr ":func:`bin`" msgid ":func:`bool`" -msgstr "" +msgstr ":func:`bool`" msgid ":func:`breakpoint`" -msgstr "" +msgstr ":func:`breakpoint`" msgid "|func-bytearray|_" -msgstr "" +msgstr "|func-bytearray|_" msgid "|func-bytes|_" -msgstr "" +msgstr "|func-bytes|_" msgid "**C**" -msgstr "" +msgstr "**C**" msgid ":func:`callable`" -msgstr "" +msgstr ":func:`callable`" msgid ":func:`chr`" -msgstr "" +msgstr ":func:`chr`" msgid ":func:`classmethod`" -msgstr "" +msgstr ":func:`classmethod`" msgid ":func:`compile`" -msgstr "" +msgstr ":func:`compile`" msgid ":func:`complex`" -msgstr "" +msgstr ":func:`complex`" msgid "**D**" -msgstr "" +msgstr "**D**" msgid ":func:`delattr`" -msgstr "" +msgstr ":func:`delattr`" msgid "|func-dict|_" -msgstr "" +msgstr "|func-dict|_" msgid ":func:`dir`" -msgstr "" +msgstr ":func:`dir`" msgid ":func:`divmod`" -msgstr "" +msgstr ":func:`divmod`" msgid "**E**" -msgstr "" +msgstr "**E**" msgid ":func:`enumerate`" -msgstr "" +msgstr ":func:`enumerate`" msgid ":func:`eval`" -msgstr "" +msgstr ":func:`eval`" msgid ":func:`exec`" -msgstr "" +msgstr ":func:`exec`" msgid "**F**" -msgstr "" +msgstr "**F**" msgid ":func:`filter`" -msgstr "" +msgstr ":func:`filter`" msgid ":func:`float`" -msgstr "" +msgstr ":func:`float`" msgid ":func:`format`" -msgstr "" +msgstr ":func:`format`" msgid "|func-frozenset|_" -msgstr "" +msgstr "|func-frozenset|_" msgid "**G**" -msgstr "" +msgstr "**G**" msgid ":func:`getattr`" -msgstr "" +msgstr ":func:`getattr`" msgid ":func:`globals`" -msgstr "" +msgstr ":func:`globals`" msgid "**H**" -msgstr "" +msgstr "**H**" msgid ":func:`hasattr`" -msgstr "" +msgstr ":func:`hasattr`" msgid ":func:`hash`" -msgstr "" +msgstr ":func:`hash`" msgid ":func:`help`" -msgstr "" +msgstr ":func:`help`" msgid ":func:`hex`" -msgstr "" +msgstr ":func:`hex`" msgid "**I**" -msgstr "" +msgstr "**I**" msgid ":func:`id`" -msgstr "" +msgstr ":func:`id`" msgid ":func:`input`" -msgstr "" +msgstr ":func:`input`" msgid ":func:`int`" -msgstr "" +msgstr ":func:`int`" msgid ":func:`isinstance`" -msgstr "" +msgstr ":func:`isinstance`" msgid ":func:`issubclass`" -msgstr "" +msgstr ":func:`issubclass`" msgid ":func:`iter`" -msgstr "" +msgstr ":func:`iter`" msgid "**L**" -msgstr "" +msgstr "**L**" msgid ":func:`len`" -msgstr "" +msgstr ":func:`len`" msgid "|func-list|_" -msgstr "" +msgstr "|func-list|_" msgid ":func:`locals`" -msgstr "" +msgstr ":func:`locals`" msgid "**M**" -msgstr "" +msgstr "**M**" msgid ":func:`map`" -msgstr "" +msgstr ":func:`map`" msgid ":func:`max`" -msgstr "" +msgstr ":func:`max`" msgid "|func-memoryview|_" -msgstr "" +msgstr "|func-memoryview|_" msgid ":func:`min`" -msgstr "" +msgstr ":func:`min`" msgid "**N**" -msgstr "" +msgstr "**N**" msgid ":func:`next`" -msgstr "" +msgstr ":func:`next`" msgid "**O**" -msgstr "" +msgstr "**O**" msgid ":func:`object`" -msgstr "" +msgstr ":func:`object`" msgid ":func:`oct`" -msgstr "" +msgstr ":func:`oct`" msgid ":func:`open`" -msgstr "" +msgstr "":func:`open`"" msgid ":func:`ord`" -msgstr "" +msgstr ":func:`ord`" msgid "**P**" -msgstr "" +msgstr "**P**" msgid ":func:`pow`" -msgstr "" +msgstr ":func:`pow`" msgid ":func:`print`" -msgstr "" +msgstr ":func:`print`" msgid ":func:`property`" -msgstr "" +msgstr ":func:`property`" msgid "**R**" -msgstr "" +msgstr "**R**" msgid "|func-range|_" -msgstr "" +msgstr "|func-range|_" msgid ":func:`repr`" -msgstr "" +msgstr ":func:`repr`" msgid ":func:`reversed`" -msgstr "" +msgstr ":func:`reversed`" msgid ":func:`round`" -msgstr "" +msgstr ":func:`round`" msgid "**S**" -msgstr "" +msgstr "**S**" msgid "|func-set|_" -msgstr "" +msgstr "|func-set|_" msgid ":func:`setattr`" -msgstr "" +msgstr ":func:`setattr`" msgid ":func:`slice`" -msgstr "" +msgstr ":func:`slice`" msgid ":func:`sorted`" -msgstr "" +msgstr ":func:`sorted`" msgid ":func:`staticmethod`" -msgstr "" +msgstr ":func:`staticmethod`" msgid "|func-str|_" -msgstr "" +msgstr "|func-str|_" msgid ":func:`sum`" -msgstr "" +msgstr ":func:`sum`" msgid ":func:`super`" -msgstr "" +msgstr ":func:`super`" msgid "**T**" -msgstr "" +msgstr "**T**" msgid "|func-tuple|_" -msgstr "" +msgstr "|func-tuple|_" msgid ":func:`type`" -msgstr "" +msgstr ":func:`type`" msgid "**V**" -msgstr "" +msgstr "**V**" msgid ":func:`vars`" -msgstr "" +msgstr ":func:`vars`" msgid "**Z**" -msgstr "" +msgstr "**Z**" msgid ":func:`zip`" -msgstr "" +msgstr ":func:`zip`" msgid "**_**" -msgstr "" +msgstr "**_**" msgid ":func:`__import__`" -msgstr "" +msgstr ":func:`__import__`" msgid "" "Return the absolute value of a number. The argument may be an integer, a " "floating-point number, or an object implementing :meth:`~object.__abs__`. If " "the argument is a complex number, its magnitude is returned." msgstr "" +"Gibt den Absolutwert einer Zahl zurück. Das Argument kann eine Ganzzahl, " +"eine Gleitkommazahl oder ein Objekt sein, das :meth:`~object.__abs__` " +"implementiert. Handelt es sich bei dem Argument um eine komplexe Zahl, " +"wird deren Betrag zurückgegeben." + msgid "" "Return an :term:`asynchronous iterator` for an :term:`asynchronous " "iterable`. Equivalent to calling ``x.__aiter__()``." msgstr "" +"Gibt einen :term:`asynchronous iterator` für ein :term:`asynchronous " +"iterable` zurück. Entspricht dem Aufruf von ``x.__aiter__()``." msgid "Note: Unlike :func:`iter`, :func:`aiter` has no 2-argument variant." -msgstr "" +msgstr "Hinweis: Im Gegensatz zu :func:`iter` gibt es bei :func:`aiter` keine Variante mit zwei Argumenten" msgid "" "Return ``True`` if all elements of the *iterable* are true (or if the " "iterable is empty). Equivalent to::" msgstr "" +"Gibt ``True`` zurück, wenn alle Elemente des *iterable* wahr sind (oder wenn das " +"iterable leer ist). Entspricht::“ msgid "" "def all(iterable):\n" @@ -328,15 +339,22 @@ msgid "" " return False\n" " return True" msgstr "" +"def all(iterable):\n" +" for element in iterable:\n" +" if not element:\n" +" return False\n" +" return True" msgid "" "When awaited, return the next item from the given :term:`asynchronous " "iterator`, or *default* if given and the iterator is exhausted." msgstr "" +"Gibt, wenn erwartet, das nächste Element des angegebenen :term:`asynchronen Iterators ` " +"zurück – oder *default*, falls angegeben und der Iterator erschöpft ist." msgid "" "This is the async variant of the :func:`next` builtin, and behaves similarly." -msgstr "" +msgstr "Dies ist die asynchrone Variante der eingebauten Funktion :func:`next` und verhält sich ähnlich." msgid "" "This calls the :meth:`~object.__anext__` method of *async_iterator*, " @@ -344,11 +362,18 @@ msgid "" "iterator. If *default* is given, it is returned if the iterator is " "exhausted, otherwise :exc:`StopAsyncIteration` is raised." msgstr "" +"Dies ruft die Methode :meth:`~object.__anext__` von *async_iterator* auf " +"und gibt ein :term:`awaitable` zurück. Das Warten auf dieses (mittels ``await``) " +"liefert den nächsten Wert des Iterators. Wenn *default* angegeben ist, " +"wird dieser Wert zurückgegeben, falls der Iterator erschöpft ist; " +"andernfalls wird :exc:`StopAsyncIteration` ausgelöst." msgid "" "Return ``True`` if any element of the *iterable* is true. If the iterable " "is empty, return ``False``. Equivalent to::" msgstr "" +"Gibt ``True`` zurück, wenn mindestens ein Element des *iterable* wahr ist. " +"Wenn das Iterable leer ist, wird ``False`` zurückgegeben. Entspricht::" msgid "" "def any(iterable):\n" @@ -357,6 +382,11 @@ msgid "" " return True\n" " return False" msgstr "" +"def any(iterable):\n" +" for element in iterable:\n" +" if element:\n" +" return True\n" +" return False" msgid "" "As :func:`repr`, return a string containing a printable representation of an " @@ -364,6 +394,10 @@ msgid "" "`repr` using ``\\x``, ``\\u``, or ``\\U`` escapes. This generates a string " "similar to that returned by :func:`repr` in Python 2." msgstr "" +"Gibt wie :func:`repr` einen String zurück, der eine druckbare Darstellung " +"eines Objekts enthält; allerdings werden Nicht-ASCII-Zeichen in dem von :func:`repr` " +"zurückgegebenen String mittels ``\\x``-, ``\\u``- oder ``\\U``-Escapes maskiert. " +"Dies erzeugt einen String, der dem ähnelt, den :func:`repr` in Python 2 zurückgibt." msgid "" "Convert an integer number to a binary string prefixed with \"0b\". The " @@ -371,14 +405,20 @@ msgid "" "`int` object, it has to define an :meth:`~object.__index__` method that " "returns an integer. Some examples:" msgstr "" +"Wandelt eine Ganzzahl in eine Binärzeichenkette mit dem Präfix \"0b\“ um. " +"Das Ergebnis ist ein gültiger Python-Ausdruck. Wenn *integer* kein Python-Objekt " +"vom Typ :class:`int` ist, muss es eine :meth:`~object.__index__`-Methode definieren, " +"die eine Ganzzahl zurückgibt. Einige Beispiele:" msgid "" "If the prefix \"0b\" is desired or not, you can use either of the following " "ways." msgstr "" +"Je nachdem, ob das Präfix \"0b\“ gewünscht ist oder nicht, können Sie eine der " +"folgenden Methoden verwenden." msgid "See also :func:`format` for more information." -msgstr "" +msgstr "Weitere Informationen findest du unter :func:`format`." msgid "" "Return a Boolean value, i.e. one of ``True`` or ``False``. The argument is " @@ -388,9 +428,16 @@ msgid "" "`typesnumeric`). It cannot be subclassed further. Its only instances are " "``False`` and ``True`` (see :ref:`typebool`)." msgstr "" +"Gibt einen booleschen Wert zurück, d. h. entweder ``True`` oder ``False``. " +"Das Argument wird mithilfe des Standardverfahrens zur Wahrheitsprüfung " +":ref:`truth testing procedure ` umgewandelt. Ist das Argument falsch " +"oder wird es weggelassen, wird ``False`` zurückgegeben; andernfalls wird ``True`` " +"zurückgegeben. Die Klasse :class:`bool` ist eine Unterklasse von :class:`int` " +"(siehe :ref:`typesnumeric`). Sie kann nicht weiter unterteilt werden. " +"Ihre einzigen Instanzen sind ``False`` und ``True`` (siehe :ref:`typebool`)." msgid "The parameter is now positional-only." -msgstr "" +msgstr "Der Parameter ist jetzt rein positionsgebunden." msgid "" "This function drops you into the debugger at the call site. Specifically, " @@ -403,22 +450,38 @@ msgid "" "you to drop into the debugger of choice. If :func:`sys.breakpointhook` is " "not accessible, this function will raise :exc:`RuntimeError`." msgstr "" +"Diese Funktion ruft an der Aufrufstelle den Debugger auf. Genauer gesagt " +"ruft sie :func:`sys.breakpointhook` auf und reicht dabei ``args`` und ``kws`` " +"direkt weiter. Standardmäßig ruft ``sys.breakpointhook()`` die Funktion " +":func:`pdb.set_trace` ohne Argumente auf. In diesem Fall handelt es sich " +"lediglich um eine Komfortfunktion, damit Sie :mod:`pdb` nicht explizit " +"importieren oder viel Code schreiben müssen, um in den Debugger zu gelangen. " +":func:`sys.breakpointhook` kann jedoch auf eine andere Funktion gesetzt " +"werden, die dann automatisch von :func:`breakpoint` aufgerufen wird; so " +"können Sie den Debugger Ihrer Wahl verwenden. Ist :func:`sys.breakpointhook` " +"nicht verfügbar, löst diese Funktion einen :exc:`RuntimeError` aus." msgid "" "By default, the behavior of :func:`breakpoint` can be changed with the :" "envvar:`PYTHONBREAKPOINT` environment variable. See :func:`sys." "breakpointhook` for usage details." msgstr "" +"Standardmäßig lässt sich das Verhalten von :func:`breakpoint` über die " +"Umgebungsvariable :envvar:`PYTHONBREAKPOINT` ändern. Einzelheiten zur Verwendung " +"finden Sie unter :func:`sys.breakpointhook`." msgid "" "Note that this is not guaranteed if :func:`sys.breakpointhook` has been " "replaced." msgstr "" +"Beachte, dass dies nicht garantiert ist, wenn :func:`sys.breakpointhook` ersetzt wurde. msgid "" "Raises an :ref:`auditing event ` ``builtins.breakpoint`` with " "argument ``breakpointhook``." msgstr "" +"Löst ein :ref:`Audit-Ereignis ` ``builtins.breakpoint`` mit dem " +"Argument ``breakpointhook`` aus." msgid "" "Return a new array of bytes. The :class:`bytearray` class is a mutable " @@ -426,39 +489,56 @@ msgid "" "methods of mutable sequences, described in :ref:`typesseq-mutable`, as well " "as most methods that the :class:`bytes` type has, see :ref:`bytes-methods`." msgstr "" +"Gibt ein neues Byte-Array zurück. Die Klasse :class:`bytearray` ist eine " +"veränderbare Sequenz von Ganzzahlen im Bereich 0 <= x < 256. Sie verfügt " +"über die meisten der üblichen Methoden veränderbarer Sequenzen, die unter " +":ref:`typesseq-mutable` beschrieben sind, sowie über die meisten Methoden " +"des Typs :class:`bytes`, siehe :ref:`bytes-methods`." msgid "" "The optional *source* parameter can be used to initialize the array in a few " "different ways:" msgstr "" +"Der optionale Parameter *source* kann verwendet werden, um das Array auf " +"unterschiedlichen Wegen zu initialisieren:“ msgid "" "If it is a *string*, you must also give the *encoding* (and optionally, " "*errors*) parameters; :func:`bytearray` then converts the string to bytes " "using :meth:`str.encode`." msgstr "" +"Wenn es sich um einen *string* handelt, musst du auch die Parameter *encoding* " +"(und optional *errors*) angeben; :func:`bytearray` wandelt den String dann mithilfe " +"von :meth:`str.encode` in Bytes um.“ msgid "" "If it is an *integer*, the array will have that size and will be initialized " "with null bytes." msgstr "" +"Wenn es sich um eine Ganzzahl (*integer*) handelt, erhält das Array diese Größe " +"und wird mit Null-Bytes initialisiert.“ msgid "" "If it is an object conforming to the :ref:`buffer interface " "`, a read-only buffer of the object will be used to " "initialize the bytes array." msgstr "" +"Handelt es sich um ein Objekt, das dem :ref:`buffer interface ` entspricht, " +"so wird ein schreibgeschützter Puffer des Objekts verwendet, " +"um das Bytes-Array zu initialisieren.“ msgid "" "If it is an *iterable*, it must be an iterable of integers in the range ``0 " "<= x < 256``, which are used as the initial contents of the array." msgstr "" +"Wenn es sich um ein *iterable* handelt, muss es eine Liste von Ganzzahlen " +"im Bereich ``0 <= x < 256`` sein, die als anfänglicher Inhalt des Arrays verwendet werden.“ msgid "Without an argument, an array of size 0 is created." -msgstr "" +msgstr "Ohne Argument wird ein Array der Größe 0 erstellt." msgid "See also :ref:`binaryseq` and :ref:`typebytearray`." -msgstr "" +msgstr "Siehe auch :ref:`binaryseq` und :ref:`typebytearray`." msgid "" "Return a new \"bytes\" object which is an immutable sequence of integers in " @@ -466,16 +546,21 @@ msgid "" "class:`bytearray` -- it has the same non-mutating methods and the same " "indexing and slicing behavior." msgstr "" +"Gibt ein neues \"bytes\“-Objekt zurück, bei dem es sich um eine unveränderliche " +"Sequenz von Ganzzahlen im Bereich ``0 <= x < 256`` handelt. :class:`bytes` ist " +"eine unveränderliche Version von :class:`bytearray` – es verfügt über dieselben " +"nicht-modifizierenden Methoden sowie dasselbe Verhalten bei Indizierung und Slicing." msgid "" "Accordingly, constructor arguments are interpreted as for :func:`bytearray`." msgstr "" +"Demzufolge werden die Konstruktorargumente wie bei :func:`bytearray` interpretiert. msgid "Bytes objects can also be created with literals, see :ref:`strings`." -msgstr "" +msgstr "Bytes-Objekte können auch mithilfe von Literalen erstellt werden; siehe :ref:`strings`." msgid "See also :ref:`binaryseq`, :ref:`typebytes`, and :ref:`bytes-methods`." -msgstr "" +msgstr "Siehe auch :ref:`binaryseq`, :ref:`typebytes` und :ref:`bytes-methods`." msgid "" "Return :const:`True` if the *object* argument appears callable, :const:" @@ -484,42 +569,62 @@ msgid "" "that classes are callable (calling a class returns a new instance); " "instances are callable if their class has a :meth:`~object.__call__` method." msgstr "" - +"Gibt :const:`True` zurück, wenn das Argument *object* aufrufbar erscheint, :const:`False`, " +"wenn dies nicht der Fall ist. Wenn der Rückgabewert ``True`` ist, kann ein Aufruf " +"dennoch fehlschlagen; ist er jedoch ``False``, wird ein Aufruf von *object* " +"niemals erfolgreich sein. Beachte, dass Klassen aufrufbar sind (der Aufruf " +"einer Klasse liefert eine neue Instanz); Instanzen sind aufrufbar, wenn ihre " +"Klasse eine :meth:`~object.__call__`-Methode besitzt." msgid "" "This function was first removed in Python 3.0 and then brought back in " "Python 3.2." msgstr "" +"Diese Funktion wurde zunächst in Python 3.0 entfernt und dann in Python 3.2 wieder eingeführt." msgid "" "Return the string representing a character with the specified Unicode code " "point. For example, ``chr(97)`` returns the string ``'a'``, while " "``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`." msgstr "" +"Gibt den String zurück, der das Zeichen mit dem angegebenen Unicode-Codepunkt darstellt. " +"Zum Beispiel liefert ``chr(97)`` den String ``'a'``, während " +"``chr(8364)`` den String ``'€'`` liefert. Dies ist die Umkehrfunktion zu :func:`ord`." msgid "" "The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in " "base 16). :exc:`ValueError` will be raised if it is outside that range." msgstr "" +"Der zulässige Wertebereich für das Argument reicht von 0 bis 1.114.111 " +"(0x10FFFF im Hexadezimalsystem). Liegt der Wert außerhalb dieses Bereichs, " +"wird eine :exc:`ValueError`-Ausnahme ausgelöst." msgid "Transform a method into a class method." -msgstr "" +msgstr "Wandeln Sie eine Methode in eine Klassenmethode um." msgid "" "A class method receives the class as an implicit first argument, just like " "an instance method receives the instance. To declare a class method, use " "this idiom::" msgstr "" +"Eine Klassenmethode erhält die Klasse als implizites erstes Argument, " +"genau wie eine Instanzmethode die Instanz erhält. Um eine Klassenmethode " +"zu deklarieren, verwenden Sie dieses Idiom::" msgid "" "class C:\n" " @classmethod\n" " def f(cls, arg1, arg2): ..." msgstr "" +"class C:\n" +" @classmethod\n" +" def f(cls, arg1, arg2): ..." msgid "" "The ``@classmethod`` form is a function :term:`decorator` -- see :ref:" "`function` for details." msgstr "" +"Die ``@classmethod``-Form ist eine Funktion :term:`decorator` – siehe " +":ref:`function` für Details.“ msgid "" "A class method can be called either on the class (such as ``C.f()``) or on " @@ -527,17 +632,27 @@ msgid "" "class. If a class method is called for a derived class, the derived class " "object is passed as the implied first argument." msgstr "" +"Eine Klassenmethode kann entweder auf der Klasse (z. B. ``C.f()``) oder auf " +"einer Instanz (z. B. ``C().f()``) aufgerufen werden. Die Instanz wird dabei " +"ignoriert, mit Ausnahme ihrer Klasse. Wird eine Klassenmethode für eine " +"abgeleitete Klasse aufgerufen, so wird das Objekt der abgeleiteten Klasse " +"als implizites erstes Argument übergeben." msgid "" "Class methods are different than C++ or Java static methods. If you want " "those, see :func:`staticmethod` in this section. For more information on " "class methods, see :ref:`types`." msgstr "" +"Klassenmethoden unterscheiden sich von statischen Methoden in C++ oder Java. " +"Wenn Sie solche benötigen, siehe :func:`staticmethod` in diesem Abschnitt. " +"Weitere Informationen zu Klassenmethoden finden Sie unter :ref:`types`." msgid "" "Class methods can now wrap other :term:`descriptors ` such as :" "func:`property`." msgstr "" +"Klassenmethoden können nun andere :term:`Deskriptoren ` wie " +":func:`property` umschließen." msgid "" "Class methods now inherit the method attributes (:attr:`~function." @@ -545,11 +660,17 @@ msgid "" "attr:`~function.__doc__` and :attr:`~function.__annotations__`) and have a " "new ``__wrapped__`` attribute." msgstr "" +"Klassenmethoden erben nun die Methodenattribute (:attr:`~function.__module__`, " +":attr:`~function.__name__`, :attr:`~function.__qualname__`, " +":attr:`~function.__doc__` und :attr:`~function.__annotations__`) und verfügen über " +"ein neues ``__wrapped__``-Attribut." msgid "" "Class methods can no longer wrap other :term:`descriptors ` such " "as :func:`property`." msgstr "" +"Klassenmethoden können keine anderen :term:`Deskriptoren ` mehr kapseln, " +"wie etwa :func:`property`." msgid "" "Compile the *source* into a code or AST object. Code objects can be " @@ -557,12 +678,19 @@ msgid "" "string, a byte string, or an AST object. Refer to the :mod:`ast` module " "documentation for information on how to work with AST objects." msgstr "" +"Kompiliere *source* zu einem Code- oder AST-Objekt. Code-Objekte können mit " +":func:`exec` oder :func:`eval` ausgeführt werden. *source* kann entweder ein " +"normaler String, ein Byte-String oder ein AST-Objekt sein. Informationen zur " +"Arbeit mit AST-Objekten findest du in der Dokumentation zum Modul :mod:`ast`." msgid "" "The *filename* argument should give the file from which the code was read; " "pass some recognizable value if it wasn't read from a file (``''`` " "is commonly used)." msgstr "" +"Das Argument *filename* sollte die Datei angeben, aus der der Code gelesen wurde; " +"übergeben Sie einen erkennbaren Wert, falls er nicht aus einer Datei gelesen wurde (häufig wird " +"``''`` verwendet)." msgid "" "The *mode* argument specifies what kind of code must be compiled; it can be " @@ -571,6 +699,12 @@ msgid "" "single interactive statement (in the latter case, expression statements that " "evaluate to something other than ``None`` will be printed)." msgstr "" +"Das Argument *mode* legt fest, welche Art von Code kompiliert werden soll; es kann " +"``'exec'`` sein, wenn *source* aus einer Folge von Anweisungen besteht, " +"``'eval'``, wenn es aus einem einzelnen Ausdruck besteht, oder ``'single'``, " +"wenn es aus einer einzelnen interaktiven Anweisung besteht (im letzteren Fall " +"werden Ausdrucksanweisungen, die einen anderen Wert als ``None`` ergeben, " +"ausgegeben)." msgid "" "The optional arguments *flags* and *dont_inherit* control which :ref:" @@ -584,6 +718,17 @@ msgid "" "*flags* argument is it -- the flags (future features and compiler options) " "in the surrounding code are ignored." msgstr "" +"Die optionalen Argumente *flags* und *dont_inherit* steuern, welche :ref:" +"`Compiler-Optionen ` aktiviert und welche :ref:" +"`future features ` zugelassen werden sollen. Wenn keines der " +"Argumente angegeben ist (oder beide null sind), wird der Code mit denselben " +"Flags kompiliert, die auch für den Code gelten, der :func:`compile` aufruft. " +"Wird das Argument *flags* angegeben, *dont_inherit* jedoch nicht (oder ist " +"es null), so werden die durch *flags* festgelegten Compiler-Optionen und " +"future-Anweisungen zusätzlich zu jenen verwendet, die ohnehin zur Anwendung " +"kämen. Ist *dont_inherit* eine Ganzzahl ungleich null, so ist das Argument " +"*flags* allein maßgeblich – die Flags (future-Funktionen und Compiler-Optionen) " +"des umgebenden Codes werden ignoriert." msgid "" "Compiler options and future statements are specified by bits which can be " @@ -593,6 +738,13 @@ msgid "" "instance in the :mod:`__future__` module. :ref:`Compiler flags ` can be found in :mod:`ast` module, with ``PyCF_`` prefix." msgstr "" +"Compiler-Optionen und Future-Anweisungen werden durch Bits festgelegt, " +"die mittels bitweiser ODER-Verknüpfung kombiniert werden können, um mehrere " +"Optionen anzugeben. Das für eine bestimmte Future-Funktion erforderliche Bitfeld " +"ist als Attribut :attr:`~__future__._Feature.compiler_flag` der Instanz von " +":class:`~__future__._Feature` im Modul :mod:`__future__` zu finden. " +":ref:`Compiler-Flags ` sind im Modul :mod:`ast` unter dem " +"Präfix ``PyCF_`` zu finden." msgid "" "The argument *optimize* specifies the optimization level of the compiler; " @@ -601,22 +753,33 @@ msgid "" "optimization; ``__debug__`` is true), ``1`` (asserts are removed, " "``__debug__`` is false) or ``2`` (docstrings are removed too)." msgstr "" +"Das Argument *optimize* legt die Optimierungsstufe des Compilers fest; " +"der Standardwert ``-1`` wählt die Optimierungsstufe des Interpreters, " +"wie sie durch die Optionen :option:`-O` bestimmt wird. Explizite Stufen " +"sind ``0`` (keine Optimierung; ``__debug__`` ist wahr), ``1`` (Erklärungen werden entfernt, " +"``__debug__`` ist falsch) oder ``2`` (auch Docstrings werden entfernt)." msgid "" "This function raises :exc:`SyntaxError` if the compiled source is invalid, " "and :exc:`ValueError` if the source contains null bytes." msgstr "" +"Diese Funktion löst :exc:`SyntaxError` aus, wenn der kompilierte Quellcode ungültig ist, " +"und :exc:`ValueError`, wenn der Quellcode Null-Bytes enthält." msgid "" "If you want to parse Python code into its AST representation, see :func:`ast." "parse`." msgstr "" +"Wenn du Python-Code in seine AST-Darstellung parsen möchtest, siehe :func:`ast.parse`." msgid "" "Raises an :ref:`auditing event ` ``compile`` with arguments " "``source`` and ``filename``. This event may also be raised by implicit " "compilation." msgstr "" +"Löst ein :ref:`Audit-Ereignis ` namens ``compile`` mit den Argumenten " +"``source`` und ``filename`` aus. Dieses Ereignis kann auch durch implizite " +"Kompilierung ausgelöst werden." msgid "" "When compiling a string with multi-line code in ``'single'`` or ``'eval'`` " @@ -624,32 +787,47 @@ msgid "" "to facilitate detection of incomplete and complete statements in the :mod:" "`code` module." msgstr "" +"Beim Kompilieren einer Zeichenkette mit mehrzeiligem Code im Modus ``'single'`` " +"oder ``'eval'`` muss die Eingabe mit mindestens einem Zeilenumbruchzeichen " +"enden. Dies dient dazu, die Erkennung unvollständiger und vollständiger " +"Anweisungen im Modul :mod:`code` zu ​​erleichtern." msgid "" "It is possible to crash the Python interpreter with a sufficiently large/" "complex string when compiling to an AST object due to stack depth " "limitations in Python's AST compiler." msgstr "" +"Es ist möglich, den Python-Interpreter beim Kompilieren in ein AST-Objekt " +"mit einem hinreichend großen oder komplexen String zum Absturz zu " +"bringen – bedingt durch die Beschränkungen der Stack-Tiefe im AST-Compiler von Python." msgid "" "Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode " "does not have to end in a newline anymore. Added the *optimize* parameter." msgstr "" +"Unterstützung für Zeilenumbrüche unter Windows und Mac hinzugefügt. Zudem muss die Eingabe " +"im Modus ``'exec'`` nicht mehr mit einem Zeilenumbruch enden. Der Parameter *optimize* wurde hinzugefügt." msgid "" "Previously, :exc:`TypeError` was raised when null bytes were encountered in " "*source*." msgstr "" +"Früher wurde ein :exc:`TypeError` ausgelöst, wenn in *source* Null-Bytes auftraten." msgid "" "``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable " "support for top-level ``await``, ``async for``, and ``async with``." msgstr "" +"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` kann nun in den Flags übergeben werden, " +"um die Unterstützung für ``await``, ``async for`` und ``async with`` auf " +"oberster Ebene zu aktivieren." msgid "" "Convert a single string or number to a complex number, or create a complex " "number from real and imaginary parts." msgstr "" +"Wandeln Sie eine einzelne Zeichenkette oder Zahl in eine komplexe Zahl um oder " +"erstellen Sie eine komplexe Zahl aus Real- und Imaginärteil." msgid "Examples:" msgstr "Beispiele:" @@ -672,6 +850,22 @@ msgid "" ">>> complex(-1.23, 4.5)\n" "(-1.23+4.5j)" msgstr "" +">>> complex('+1.23')\n" +"(1.23+0j)\n" +">>> complex('-4.5j')\n" +"-4.5j\n" +">>> complex('-1.23+4.5j')\n" +"(-1.23+4.5j)\n" +">>> complex('\\t( -1.23+4.5J )\\n')\n" +"(-1.23+4.5j)\n" +">>> complex('-Infinity+NaNj')\n" +"(-inf+nanj)\n" +">>> complex(1.23)\n" +"(1.23+0j)\n" +">>> complex(imag=-4.5)\n" +"-4.5j\n" +">>> complex(-1.23, 4.5)\n" +"(-1.23+4.5j)" msgid "" "If the argument is a string, it must contain either a real part (in the same " @@ -686,6 +880,19 @@ msgid "" "token:`~float:complexvalue` production rule in the following grammar, after " "parentheses and leading and trailing whitespace characters are removed:" msgstr "" +"Wenn das Argument ein String ist, muss es entweder einen Realteil (im " +"gleichen Format wie für :func:`float`) oder einen Imaginärteil (im gleichen " +"Format, jedoch mit dem Suffix ``'j'`` oder ``'J'``) oder sowohl einen Real- " +"als auch einen Imaginärteil enthalten (wobei das Vorzeichen des " +"Imaginärteils in diesem Fall zwingend erforderlich ist). Der String kann " +"optional von Leerzeichen sowie den runden Klammern ``'('`` und ``')'`` " +"umschlossen sein; diese werden ignoriert. Der String darf keine Leerzeichen " +"zwischen ``'+'``, ``'-'``, dem Suffix ``'j'`` oder ``'J'`` und der " +"Dezimalzahl enthalten. So ist beispielsweise ``complex('1+2j')`` zulässig, " +"während ``complex('1 + 2j')`` einen :exc:`ValueError` auslöst. Genauer " +"gesagt muss die Eingabe – nach Entfernung von Klammern sowie führenden und " +"nachgestellten Leerzeichen – der Produktionsregel :token:`~float:complexvalue` " +"in der folgenden Grammatik entsprechen:" msgid "" "If the argument is a number, the constructor serves as a numeric conversion " @@ -695,6 +902,11 @@ msgid "" "If :meth:`!__float__` is not defined then it falls back to :meth:`~object." "__index__`." msgstr "" +"Wenn das Argument eine Zahl ist, fungiert der Konstruktor als numerische Umwandlung, " +"ähnlich wie :class:`int` und :class:`float`. Bei einem allgemeinen Python-Objekt ``x`` " +"delegiert ``complex(x)`` an ``x.__complex__()``. Ist :meth:`~object.__complex__` nicht " +"definiert, wird auf :meth:`~object.__float__` zurückgegriffen. " +"Ist :meth:`!__float__` nicht definiert, wird auf :meth:`~object.__index__` zurückgegriffen.“ msgid "" "If two arguments are provided or keyword arguments are used, each argument " @@ -705,30 +917,43 @@ msgid "" "imaginary component ``real.imag+imag.real``. If one of arguments is a real " "number, only its real component is used in the above expressions." msgstr "" +"Wenn zwei Argumente übergeben oder Schlüsselwortargumente verwendet werden, " +"kann jedes Argument von einem beliebigen numerischen Typ (einschließlich komplexer Zahlen) sein. " +"Sind beide Argumente reelle Zahlen, wird eine komplexe Zahl mit dem Realteil *real* " +"und dem Imaginärteil *imag* zurückgegeben. Sind beide Argumente komplexe Zahlen, " +"wird eine komplexe Zahl mit dem Realteil ``real.real-imag.imag`` und dem " +"Imaginärteil ``real.imag+imag.real`` zurückgegeben. Ist eines der Argumente " +"eine reelle Zahl, wird in den obigen Ausdrücken nur deren Realteil verwendet." msgid "" "See also :meth:`complex.from_number` which only accepts a single numeric " "argument." msgstr "" +"Siehe auch :meth:`complex.from_number`, das nur ein einzelnes numerisches " +"Argument akzeptiert." msgid "If all arguments are omitted, returns ``0j``." -msgstr "" +msgstr "Wenn keine Argumente angegeben werden, wird ``0j`` zurückgegeben." msgid "The complex type is described in :ref:`typesnumeric`." -msgstr "" +msgstr "Der komplexe Typ wird unter :ref:`typesnumeric` beschrieben." msgid "Grouping digits with underscores as in code literals is allowed." -msgstr "" +msgstr "Die Gruppierung von Ziffern mittels Unterstrichen, wie bei Code-Literalen, ist zulässig." msgid "" "Falls back to :meth:`~object.__index__` if :meth:`~object.__complex__` and :" "meth:`~object.__float__` are not defined." msgstr "" +"Fällt auf :meth:`~object.__index__` zurück, wenn :meth:`~object.__complex__` " +"und :meth:`~object.__float__` nicht definiert sind." msgid "" "Passing a complex number as the *real* or *imag* argument is now deprecated; " "it should only be passed as a single positional argument." msgstr "" +„Die Übergabe einer komplexen Zahl als *real*- oder *imag*-Argument ist veraltet;" +"sie sollte nur noch als einzelnes Positionsargument übergeben werden.“ msgid "" "This is a relative of :func:`setattr`. The arguments are an object and a " @@ -737,22 +962,34 @@ msgid "" "example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``. *name* " "need not be a Python identifier (see :func:`setattr`)." msgstr "" +"Dies ist ein Gegenstück zu :func:`setattr`. Die Argumente sind ein Objekt " +"und eine Zeichenkette. Die Zeichenkette muss der Name eines der Attribute " +"des Objekts sein. Die Funktion löscht das benannte Attribut, sofern das Objekt " +"dies zulässt. So entspricht beispielsweise ``delattr(x, 'foobar')`` der Anweisung " +"``del x.foobar``. *name* muss kein Python-Bezeichner sein (siehe :func:`setattr`)." msgid "" "Create a new dictionary. The :class:`dict` object is the dictionary class. " "See :class:`dict` and :ref:`typesmapping` for documentation about this class." msgstr "" +"Erstellen Sie ein neues Dictionary. Das :class:`dict`-Objekt ist die Dictionary-Klasse." +"Informationen zu dieser Klasse finden Sie unter :class:`dict` und :ref:`typesmapping`." msgid "" "For other containers see the built-in :class:`list`, :class:`set`, and :" "class:`tuple` classes, as well as the :mod:`collections` module." msgstr "" +"Für weitere Container siehe die eingebauten Klassen :class:`list`, :class:`set` und " +":"class:`tuple` sowie das Modul :mod:`collections`." msgid "" "Without arguments, return the list of names in the current local scope. " "With an argument, attempt to return a list of valid attributes for that " "object." msgstr "" +"Ohne Argumente wird die Liste der Namen im aktuellen lokalen Gültigkeitsbereich zurückgegeben. " +"Mit einem Argument wird versucht, eine Liste der gültigen Attribute für dieses " +"Objekt zurückzugeben." msgid "" "If the object has a method named :meth:`~object.__dir__`, this method will " @@ -761,6 +998,11 @@ msgid "" "__getattribute__` function to customize the way :func:`dir` reports their " "attributes." msgstr "" +"Wenn das Objekt eine Methode namens :meth:`~object.__dir__` besitzt, wird " +"diese Methode aufgerufen und muss die Liste der Attribute zurückgeben. Dies ermöglicht " +"es Objekten, die eine benutzerdefinierte Funktion :func:`~object.__getattr__` " +"oder :func:`~object.__getattribute__` implementieren, die Art und Weise anzupassen, " +"wie :func:`dir` ihre Attribute auflistet.“ msgid "" "If the object does not provide :meth:`~object.__dir__`, the function tries " @@ -769,31 +1011,47 @@ msgid "" "necessarily complete and may be inaccurate when the object has a custom :" "func:`~object.__getattr__`." msgstr "" +"Wenn das Objekt kein :meth:`~object.__dir__` bereitstellt, versucht die Funktion, " +"so viele Informationen wie möglich aus dem :attr:`~object.__dict__`-Attribut " +"des Objekts (sofern definiert) sowie aus dessen Typobjekt zu gewinnen. Die " +"resultierende Liste ist nicht zwangsläufig vollständig und kann ungenau sein, " +"wenn das Objekt über eine benutzerdefinierte :func:`~object.__getattr__`-Methode " +"verfügt." msgid "" "The default :func:`dir` mechanism behaves differently with different types " "of objects, as it attempts to produce the most relevant, rather than " "complete, information:" msgstr "" +"Der Standardmechanismus von :func:`dir` verhält sich bei verschiedenen Objekttypen " +"unterschiedlich, da er versucht, die relevantesten – und nicht etwa die " +"vollständigen – Informationen zu liefern:" msgid "" "If the object is a module object, the list contains the names of the " "module's attributes." msgstr "" +"Wenn es sich bei dem Objekt um ein Modulobjekt handelt, enthält die Liste die Namen der Attribute des Moduls." msgid "" "If the object is a type or class object, the list contains the names of its " "attributes, and recursively of the attributes of its bases." msgstr "" +"Wenn es sich bei dem Objekt um ein Typ- oder Klassenobjekt handelt, enthält " +"die Liste die Namen seiner Attribute sowie – rekursiv – die Namen der Attribute " +"seiner Basisklassen." msgid "" "Otherwise, the list contains the object's attributes' names, the names of " "its class's attributes, and recursively of the attributes of its class's " "base classes." msgstr "" +"Andernfalls enthält die Liste die Namen der Attribute des Objekts, die Namen " +"der Attribute seiner Klasse sowie – rekursiv – die Namen der Attribute der Basisklassen " +"seiner Klasse." msgid "The resulting list is sorted alphabetically. For example:" -msgstr "" +msgstr "Die resultierende Liste ist alphabetisch sortiert. Zum Beispiel:" msgid "" "Because :func:`dir` is supplied primarily as a convenience for use at an " @@ -802,6 +1060,12 @@ msgid "" "its detailed behavior may change across releases. For example, metaclass " "attributes are not in the result list when the argument is a class." msgstr "" +"Da :func:`dir` in erster Linie als Hilfsmittel für die Verwendung an einer " +"interaktiven Eingabeaufforderung gedacht ist, zielt die Funktion eher darauf ab, " +"eine interessante Menge von Namen zu liefern, als eine streng oder konsistent " +"definierte Menge; zudem kann sich ihr detailliertes Verhalten zwischen " +"verschiedenen Releases ändern. So sind beispielsweise Metaklassen-Attribute " +"nicht in der Ergebnisliste enthalten, wenn das Argument eine Klasse ist." msgid "" "Take two (non-complex) numbers as arguments and return a pair of numbers " @@ -813,6 +1077,14 @@ msgid "" "is very close to *a*, if ``a % b`` is non-zero it has the same sign as *b*, " "and ``0 <= abs(a % b) < abs(b)``." msgstr "" +"Nimmt zwei (nicht komplexe) Zahlen als Argumente entgegen und gibt ein Zahlenpaar zurück, " +"das aus dem Quotienten und dem Rest der Ganzzahldivision besteht. " +"Bei gemischten Operandentypen gelten die Regeln für binäre arithmetische Operatoren. " +"Bei Ganzzahlen entspricht das Ergebnis ``(a // b, a % b)``. Bei Gleitkomma-" +"zahlen lautet das Ergebnis ``(q, a % b)``, wobei *q* normalerweise ``math." +"floor(a / b)`` entspricht, aber auch um 1 kleiner sein kann. In jedem Fall liegt ``q * b + a % b`` " +"sehr nahe bei *a*; ist ``a % b`` ungleich null, so hat es dasselbe Vorzeichen wie *b*, " +"und es gilt ``0 <= abs(a % b) < abs(b)``." msgid "" "Return an enumerate object. *iterable* must be a sequence, an :term:" @@ -821,9 +1093,15 @@ msgid "" "returns a tuple containing a count (from *start* which defaults to 0) and " "the values obtained from iterating over *iterable*." msgstr "" +"Gibt ein enumerate-Objekt zurück. *iterable* muss eine Sequenz, ein :term:" +"`Iterator` oder ein anderes Objekt sein, das Iteration unterstützt. Die :meth:" +"`~iterator.__next__`-Methode des von :func:`enumerate` zurückgegebenen " +"Iterators liefert ein Tupel, das einen Zähler (beginnend bei *start*, " +"standardmäßig 0) und die durch Iteration über *iterable* erhaltenen " +"Werte enthält." msgid "Equivalent to::" -msgstr "" +msgstr "Gleichbedeutend mit::" msgid "" "def enumerate(iterable, start=0):\n" @@ -832,35 +1110,42 @@ msgid "" " yield n, elem\n" " n += 1" msgstr "" +"def enumerate(iterable, start=0):\n" +" n = start\n" +" for elem in iterable:\n" +" yield n, elem\n" +" n += 1" msgid "Parameters" -msgstr "" +msgstr "Parameter" msgid "A Python expression." -msgstr "" +msgstr "Ein Python Ausdruck" msgid "The global namespace (default: ``None``)." -msgstr "" +msgstr "Der globale Namensraum (default: ``None``)." msgid "The local namespace (default: ``None``)." -msgstr "" +msgstr "Der lokale Namensraum (default: ``None``)." msgid "Returns" -msgstr "" +msgstr "Rückgaben" msgid "The result of the evaluated expression." -msgstr "" +msgstr "Das Ergebnis des ausgewerteten Ausdrucks." msgid "raises" -msgstr "" +msgstr "Meldung" msgid "Syntax errors are reported as exceptions." -msgstr "" +msgstr "Syntaxfehler werden als Ausnahmen gemeldet." msgid "" "This function executes arbitrary code. Calling it with user-supplied input " "may lead to security vulnerabilities." msgstr "" +"Diese Funktion führt beliebigen Code aus. Der Aufruf mit vom Benutzer " +"bereitgestellter Eingabe kann zu Sicherheitslücken führen." msgid "" "The *expression* argument is parsed and evaluated as a Python expression " @@ -879,9 +1164,26 @@ msgid "" "referenced in the scope that is calling :func:`eval` (e.g. via a :keyword:" "`nonlocal` statement)." msgstr "" +"Das Argument *expression* wird als Python-Ausdruck (technisch gesehen als " +"Bedingungsliste) unter Verwendung der Mappings *globals* und *locals* als " +"globaler bzw. lokaler Namensraum geparst und ausgewertet. Wenn das Dictionary " +"*globals* vorhanden ist und keinen Wert für den Schlüssel ``__builtins__`` " +"enthält, wird eine Referenz auf das Dictionary des eingebauten Moduls " +":mod:`builtins` unter diesem Schlüssel eingefügt, bevor *expression* geparst " +"wird. Auf diese Weise können Sie steuern, welche eingebauten Funktionen und " +"Objekte (Built-ins) dem ausgeführten Code zur Verfügung stehen, indem Sie Ihr " +"eigenes ``__builtins__``-Dictionary in *globals* einfügen, bevor Sie es an " +":func:`eval` übergeben. Wird das Mapping *locals* weggelassen, wird standardmäßig " +"das Dictionary *globals* verwendet. Werden beide Mappings weggelassen, wird " +"der Ausdruck mit den *globals* und *locals* der Umgebung ausgeführt, in der " +":func:`eval` aufgerufen wird. Beachten Sie, dass *eval()* nur dann Zugriff auf " +"die :term:`verschachtelten Gültigkeitsbereiche ` (Non-Locals) " +"der umschließenden Umgebung hat, wenn diese bereits in dem Gültigkeitsbereich " +"referenziert werden, der :func:`eval` aufruft (z. B. durch eine " +":keyword:`nonlocal`-Anweisung)." msgid "Example:" -msgstr "" +msgstr "Beispiel:" msgid "" "This function can also be used to execute arbitrary code objects (such as " @@ -889,6 +1191,11 @@ msgid "" "of a string. If the code object has been compiled with ``'exec'`` as the " "*mode* argument, :func:`eval`\\'s return value will be ``None``." msgstr "" +"Diese Funktion kann auch verwendet werden, um beliebige Code-Objekte " +"(wie etwa solche, die mit :func:`compile` erstellt wurden) auszuführen. " +"Übergeben Sie in diesem Fall ein Code-Objekt anstelle einer Zeichenkette. " +"Wenn das Code-Objekt mit ``'exec'`` als *mode*-Argument kompiliert wurde, " +"ist der Rückgabewert von :func:`eval` ``None``." msgid "" "Hints: dynamic execution of statements is supported by the :func:`exec` " @@ -896,29 +1203,41 @@ msgid "" "current global and local dictionary, respectively, which may be useful to " "pass around for use by :func:`eval` or :func:`exec`." msgstr "" +"Hinweise: Die dynamische Ausführung von Anweisungen wird durch die Funktion " +":func:`exec` unterstützt. Die Funktionen :func:`globals` und :func:`locals` " +"liefern das aktuelle globale beziehungsweise lokale Dictionary zurück; dies " +"kann nützlich sein, um sie an :func:`eval` oder :func:`exec` weiterzugeben." msgid "" "If the given source is a string, then leading and trailing spaces and tabs " "are stripped." msgstr "" +"Wenn die angegebene Quelle eine Zeichenkette ist, werden führende und nachstehende " +"Leerzeichen sowie Tabulatoren entfernt." msgid "" "See :func:`ast.literal_eval` for a function that can safely evaluate strings " "with expressions containing only literals." msgstr "" +"Siehe :func:`ast.literal_eval` für eine Funktion, die Zeichenketten mit Ausdrücken, " +"die ausschließlich Literale enthalten, sicher auswerten kann." msgid "" "Raises an :ref:`auditing event ` ``exec`` with the code object as " "the argument. Code compilation events may also be raised." msgstr "" +"Löst ein :ref:`Audit-Ereignis ` ``exec`` mit dem Code-Objekt als " +"Argument aus. Es können auch Ereignisse zur Code-Kompilierung ausgelöst werden." msgid "The *globals* and *locals* arguments can now be passed as keywords." -msgstr "" +msgstr "Die Argumente *globals* und *locals* können nun als Schlüsselwortargumente übergeben werden." msgid "" "The semantics of the default *locals* namespace have been adjusted as " "described for the :func:`locals` builtin." msgstr "" +"Die Semantik des Standard-Namensraums für lokale Variablen (*locals*) " +"wurde wie für die eingebaute Funktion :func:`locals` beschrieben angepasst." msgid "" "This function supports dynamic execution of Python code. *source* must be " @@ -931,6 +1250,17 @@ msgid "" "not be used outside of function definitions even within the context of code " "passed to the :func:`exec` function. The return value is ``None``." msgstr "" +"Diese Funktion unterstützt die dynamische Ausführung von Python-Code. *source* muss " +"entweder eine Zeichenkette oder ein Code-Objekt sein. Handelt es sich um eine " +"Zeichenkette, so wird diese als eine Folge von Python-Anweisungen geparst " +"und anschließend ausgeführt (sofern kein Syntaxfehler auftritt). [#]_ " +"Handelt es sich um ein Code-Objekt, so wird dieses einfach ausgeführt. In " +"jedem Fall muss der ausgeführte Code als Dateieingabe gültig sein (siehe " +"den Abschnitt :ref:`file-input` im Referenzhandbuch). Beachten Sie, dass die " +"Anweisungen :keyword:`nonlocal`, :keyword:`yield` und :keyword:`return` " +"auch innerhalb des an die Funktion :func:`exec` übergebenen Codes nicht " +"außerhalb von Funktionsdefinitionen verwendet werden dürfen. Der " +"Rückgabewert ist ``None``." msgid "" "In all cases, if the optional parts are omitted, the code is executed in the " @@ -941,6 +1271,14 @@ msgid "" "any mapping object. Remember that at the module level, globals and locals " "are the same dictionary." msgstr "" +"In allen Fällen wird der Code im aktuellen Gültigkeitsbereich ausgeführt, " +"wenn die optionalen Argumente weggelassen werden. Wird nur *globals* angegeben, " +"muss es sich um ein Dictionary handeln (und nicht um eine Unterklasse davon), " +"das sowohl für die globalen als auch für die lokalen Variablen verwendet wird. " +"Werden sowohl *globals* als auch *locals* angegeben, so dienen sie jeweils als " +"globale beziehungsweise lokale Variablen. Falls angegeben, kann *locals* ein " +"beliebiges Mapping-Objekt sein. Beachten Sie, dass auf Modulebene globale und " +"lokale Variablen dasselbe Dictionary darstellen." msgid "" "When ``exec`` gets two separate objects as *globals* and *locals*, the code " @@ -949,6 +1287,12 @@ msgid "" "access variables assigned at the top level (as the \"top level\" variables " "are treated as class variables in a class definition)." msgstr "" +"Wenn „exec“ zwei separate Objekte als *globals* und *locals* erhält, wird " +"der Code so ausgeführt, als wäre er in eine Klassendefinition eingebettet. " +"Das bedeutet, dass im ausgeführten Code definierte Funktionen und Klassen " +"nicht auf Variablen zugreifen können, die auf der obersten Ebene zugewiesen " +"wurden (da diese Variablen der „obersten Ebene“ in einer Klassendefinition " +"als Klassenvariablen behandelt werden)." msgid "" "If the *globals* dictionary does not contain a value for the key " @@ -957,6 +1301,12 @@ msgid "" "builtins are available to the executed code by inserting your own " "``__builtins__`` dictionary into *globals* before passing it to :func:`exec`." msgstr "" +"Wenn das *globals*-Dictionary keinen Wert für den Schlüssel ``__builtins__`` enthält, " +"wird unter diesem Schlüssel eine Referenz auf das Dictionary des eingebauten " +"Moduls :mod:`builtins` eingefügt. Auf diese Weise können Sie steuern, welche " +"eingebauten Funktionen und Objekte dem ausgeführten Code zur Verfügung stehen, " +"indem Sie Ihr eigenes ``__builtins__``-Dictionary in *globals* einfügen, " +"bevor Sie es an :func:`exec` übergeben." msgid "" "The *closure* argument specifies a closure--a tuple of cellvars. It's only " @@ -964,21 +1314,31 @@ msgid "" "variables `. The length of the tuple must exactly match " "the length of the code object's :attr:`~codeobject.co_freevars` attribute." msgstr "" +"Das Argument *closure* spezifiziert einen Closure – ein Tupel von Cell-Variablen. " +"Es ist nur dann gültig, wenn das *Objekt* ein Code-Objekt ist, das :term:`freie " +"(Closure-)Variablen ` enthält. Die Länge des Tupels muss exakt " +"der Länge des Attributs :attr:`~codeobject.co_freevars` des Code-Objekts entsprechen." msgid "" "The built-in functions :func:`globals` and :func:`locals` return the current " "global and local namespace, respectively, which may be useful to pass around " "for use as the second and third argument to :func:`exec`." msgstr "" +"Die eingebauten Funktionen :func:`globals` und :func:`locals` geben den aktuellen " +"globalen beziehungsweise lokalen Namensraum zurück; dies kann nützlich sein, " +"um sie als zweites und drittes Argument an :func:`exec` zu übergeben." msgid "" "The default *locals* act as described for function :func:`locals` below. " "Pass an explicit *locals* dictionary if you need to see effects of the code " "on *locals* after function :func:`exec` returns." msgstr "" +"Die Standard *locals* wirken wie für die Funktion :func:`locals` weiter unten beschrieben. " +"Übergeben Sie ein explizites *locals*-Dictionary, wenn Sie die Auswirkungen des Codes " +"auf die *locals* sehen möchten, nachdem die Funktion :func:`exec` zurückgekehrt ist." msgid "Added the *closure* parameter." -msgstr "" +msgstr "Der Parameter *closure* wurde hinzugefügt." msgid "" "Construct an iterator from those elements of *iterable* for which *function* " @@ -986,6 +1346,11 @@ msgid "" "iteration, or an iterator. If *function* is ``None``, the identity function " "is assumed, that is, all elements of *iterable* that are false are removed." msgstr "" +"Erstellt einen Iterator aus denjenigen Elementen von *iterable*, für die *function* " +"wahr ergibt. *iterable* kann entweder eine Sequenz, ein Container, der " +"Iteration unterstützt, oder ein Iterator sein. Ist *function* ``None``, " +"so wird die Identitätsfunktion angenommen; das heißt, alle Elemente von " +"*iterable*, die „falsch“ sind, werden entfernt." msgid "" "Note that ``filter(function, iterable)`` is equivalent to the generator " @@ -993,14 +1358,20 @@ msgid "" "not ``None`` and ``(item for item in iterable if item)`` if function is " "``None``." msgstr "" +"Beachte, dass ``filter(function, iterable)`` dem Generatorausdruck " +"``(item for item in iterable if function(item))`` entspricht, wenn " +"``function`` nicht ``None`` ist, und ``(item for item in iterable if item)``, " +"wenn ``function`` ``None`` ist." msgid "" "See :func:`itertools.filterfalse` for the complementary function that " "returns elements of *iterable* for which *function* is false." msgstr "" +"Siehe :func:`itertools.filterfalse` für die komplementäre Funktion, " +"die Elemente von *iterable* zurückgibt, für die *function* falsch ist." msgid "Return a floating-point number constructed from a number or a string." -msgstr "" +msgstr "Geben Sie eine Gleitkommazahl zurück, die aus einer Zahl oder einer Zeichenkette erstellt wurde." msgid "" ">>> float('+1.23')\n" @@ -1014,6 +1385,16 @@ msgid "" ">>> float('-Infinity')\n" "-inf" msgstr "" +">>> float('+1.23')\n" +"1.23\n" +">>> float(' -12345\\n')\n" +"-12345.0\n" +">>> float('1e-003')\n" +"0.001\n" +">>> float('+1E6')\n" +"1000000.0\n" +">>> float('-Infinity')\n" +"-inf" msgid "" "If the argument is a string, it should contain a decimal number, optionally " @@ -1024,11 +1405,22 @@ msgid "" "conform to the :token:`~float:floatvalue` production rule in the following " "grammar, after leading and trailing whitespace characters are removed:" msgstr "" +"Wenn das Argument eine Zeichenkette ist, muss sie eine Dezimalzahl enthalten, " +"der optional ein Vorzeichen vorangestellt ist und die optional von Leerzeichen " +"umgeben sein kann. Das optionale Vorzeichen kann ``'+'`` oder ``'-'`` sein; ein " +"``'+'``-Zeichen hat keinen Einfluss auf den resultierenden Wert. Das Argument " +"kann auch eine Zeichenkette sein, die NaN (Not-a-Number) oder positive bzw. " +"negative Unendlichkeit darstellt. Genauer gesagt muss die Eingabe – nach " +"Entfernung führender und nachfolgender Leerzeichen – der Produktionsregel " +":token:`~float:floatvalue` in der folgenden Grammatik entsprechen:“ msgid "" "Case is not significant, so, for example, \"inf\", \"Inf\", \"INFINITY\", " "and \"iNfINity\" are all acceptable spellings for positive infinity." msgstr "" +"Die Groß-/Kleinschreibung spielt keine Rolle; so sind beispielsweise \"inf\“, " +"\"Inf\“, \"INFINITY\“ und \"iNfINity\“ allesamt zulässige Schreibweisen für " +"positive Unendlichkeit." msgid "" "Otherwise, if the argument is an integer or a floating-point number, a " @@ -1036,27 +1428,36 @@ msgid "" "precision) is returned. If the argument is outside the range of a Python " "float, an :exc:`OverflowError` will be raised." msgstr "" +"Handelt es sich bei dem Argument andernfalls um eine Ganzzahl oder eine Gleitkommazahl, " +"so wird eine Gleitkommazahl mit demselben Wert (innerhalb der Gleitkommapräzision von Python) " +"zurückgegeben. Liegt das Argument außerhalb des Wertebereichs eines Python-Floats, " +"wird ein :exc:`OverflowError` ausgelöst." msgid "" "For a general Python object ``x``, ``float(x)`` delegates to ``x." "__float__()``. If :meth:`~object.__float__` is not defined then it falls " "back to :meth:`~object.__index__`." msgstr "" +"Für ein allgemeines Python-Objekt ``x`` delegiert ``float(x)`` an " +"``x.__float__()``. Wenn :meth:`~object.__float__` nicht definiert ist, fällt es „ +"zurück zu :meth:`~object.__index__`.“ msgid "" "See also :meth:`float.from_number` which only accepts a numeric argument." -msgstr "" +msgstr "Siehe auch :meth:`float.from_number`, das nur ein numerisches Argument akzeptiert." msgid "If no argument is given, ``0.0`` is returned." -msgstr "" +msgstr "Wenn kein Argument angegeben wird, wird ``0.0`` zurückgegeben." msgid "The float type is described in :ref:`typesnumeric`." -msgstr "" +msgstr "Der Typ „float“ wird in :ref:`typesnumeric` beschrieben." msgid "" "Falls back to :meth:`~object.__index__` if :meth:`~object.__float__` is not " "defined." msgstr "" +"Fällt auf :meth:`~object.__index__` zurück, wenn :meth:`~object.__float__` " +"nicht definiert ist." msgid "" "Convert a *value* to a \"formatted\" representation, as controlled by " @@ -1064,11 +1465,17 @@ msgid "" "of the *value* argument; however, there is a standard formatting syntax that " "is used by most built-in types: :ref:`formatspec`." msgstr "" +"Wandelt einen *Wert* in eine \"formatierte\“ Darstellung um, wie durch *format_spec* " +"festgelegt. Die Interpretation von *format_spec* hängt vom Typ des Arguments *Wert* ab; " +"es gibt jedoch eine Standard-Formatierungssyntax, die von den meisten eingebauten " +"Typen verwendet wird: :ref:`formatspec`." msgid "" "The default *format_spec* is an empty string which usually gives the same " "effect as calling :func:`str(value) `." msgstr "" +"Die Standard *format_spec* ist eine leere Zeichenkette, was normalerweise " +"denselben Effekt hat wie der Aufruf von :func:`str(value) `." msgid "" "A call to ``format(value, format_spec)`` is translated to ``type(value)." @@ -1078,22 +1485,35 @@ msgid "" "and the *format_spec* is non-empty, or if either the *format_spec* or the " "return value are not strings." msgstr "" +"Ein Aufruf von ``format(value, format_spec)`` wird in ``type(value)." +"__format__(value, format_spec)`` übersetzt, wodurch das Instanz-Dictionary bei " +"der Suche nach der :meth:`~object.__format__`-Methode des Werts umgangen wird. Eine :exc:" +"`TypeError`-Ausnahme wird ausgelöst, wenn die Methodensuche :mod:`object` " +"erreicht und *format_spec* nicht leer ist, oder wenn entweder *format_spec* " +"oder der Rückgabewert keine Zeichenkette ist." msgid "" "``object().__format__(format_spec)`` raises :exc:`TypeError` if " "*format_spec* is not an empty string." msgstr "" +"``object().__format__(format_spec)`` löst :exc:`TypeError` aus, wenn " +"*format_spec* keine leere Zeichenkette ist." msgid "" "Return a new :class:`frozenset` object, optionally with elements taken from " "*iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and :" "ref:`types-set` for documentation about this class." msgstr "" +"Gibt ein neues :class:`frozenset`-Objekt zurück, optional mit Elementen aus " +"*iterable*. ``frozenset`` ist eine integrierte Klasse. Siehe :class:`frozenset` und :" +"ref:`types-set` für die Dokumentation zu dieser Klasse." msgid "" "For other containers see the built-in :class:`set`, :class:`list`, :class:" "`tuple`, and :class:`dict` classes, as well as the :mod:`collections` module." msgstr "" +"Für weitere Container siehe die eingebauten Klassen :class:`set`, :class:`list`, :class:" +"`tuple` und :class:`dict` sowie das Modul :mod:`collections`." msgid "" "Return the value of the named attribute of *object*. *name* must be a " @@ -1103,6 +1523,12 @@ msgid "" "exist, *default* is returned if provided, otherwise :exc:`AttributeError` is " "raised. *name* need not be a Python identifier (see :func:`setattr`)." msgstr "" +"Gibt den Wert des benannten Attributs von *object* zurück. *name* muss ein " +"String sein. Wenn der String der Name eines der Attribute des Objekts ist, " +"ist das Ergebnis der Wert dieses Attributs. Zum Beispiel entspricht ``getattr(x, " +"'foobar')`` dem Ausdruck ``x.foobar``. Existiert das benannte Attribut nicht, " +"wird *default* zurückgegeben, sofern angegeben; andernfalls wird ein " +":exc:`AttributeError` ausgelöst. *name* muss kein Python-Bezeichner sein (siehe :func:`setattr`)." msgid "" "Since :ref:`private name mangling ` happens at " @@ -1110,12 +1536,18 @@ msgid "" "with two leading underscores) name in order to retrieve it with :func:" "`getattr`." msgstr "" +"Da :ref:`Private Name Mangling ` zur Kompilierzeit erfolgt, " +"muss der Name eines privaten Attributs (Attribute mit zwei führenden Unterstrichen) " +"manuell umgewandelt werden, um es mittels :func:`getattr` abrufen zu können." msgid "" "Return the dictionary implementing the current module namespace. For code " "within functions, this is set when the function is defined and remains the " "same regardless of where the function is called." msgstr "" +"Geben Sie das Dictionary zurück, das den Namespace des aktuellen Moduls implementiert. Bei Code " +"innerhalb von Funktionen wird dieses bei der Definition der Funktion festgelegt und " +"bleibt unverändert, unabhängig davon, von wo aus die Funktion aufgerufen wird." msgid "" "The arguments are an object and a string. The result is ``True`` if the " @@ -1123,6 +1555,10 @@ msgid "" "(This is implemented by calling ``getattr(object, name)`` and seeing whether " "it raises an :exc:`AttributeError` or not.)" msgstr "" +"Die Argumente sind ein Objekt und ein String. Das Ergebnis ist ``True``, " +"wenn der String der Name eines Attributs des Objekts ist, andernfalls ``False``. " +"(Dies wird implementiert, indem ``getattr(object, name)`` aufgerufen und geprüft " +"wird, ob ein :exc:`AttributeError` ausgelöst wird oder nicht.)" msgid "" "Return the hash value of the object (if it has one). Hash values are " @@ -1130,6 +1566,11 @@ msgid "" "dictionary lookup. Numeric values that compare equal have the same hash " "value (even if they are of different types, as is the case for 1 and 1.0)." msgstr "" +"Gibt den Hash-Wert des Objekts zurück (sofern es einen besitzt). Hash-Werte sind " +"Ganzzahlen. Sie dienen dazu, Dictionary-Schlüssel bei einer Suche im " +"Dictionary schnell zu vergleichen. Numerische Werte, die als gleich gelten, " +"haben denselben Hash-Wert (selbst wenn sie unterschiedlichen Typs sind, " +"wie es bei 1 und 1.0 der Fall ist)." msgid "" "For objects with custom :meth:`~object.__hash__` methods, note that :func:" @@ -1144,6 +1585,13 @@ msgid "" "documentation topic, and a help page is printed on the console. If the " "argument is any other kind of object, a help page on the object is generated." msgstr "" +"Ruft das integrierte Hilfesystem auf. (Diese Funktion ist für die interaktive " +"Nutzung vorgesehen.) Wenn kein Argument angegeben wird, startet das interaktive " +"Hilfesystem auf der Interpreterkonsole. Wenn das Argument eine Zeichenkette ist, " +"wird diese als Name eines Moduls, einer Funktion, einer Klasse, einer Methode, " +"eines Schlüsselworts oder eines Dokumentationsthemas nachgeschlagen und eine " +"Hilfeseite auf der Konsole ausgegeben. Wenn das Argument ein anderes Objekt ist, " +"wird eine Hilfeseite zu diesem Objekt generiert." msgid "" "Note that if a slash(/) appears in the parameter list of a function when " @@ -1151,37 +1599,55 @@ msgid "" "positional-only. For more info, see :ref:`the FAQ entry on positional-only " "parameters `." msgstr "" +"Beachten Sie: Wenn beim Aufruf von :func:`help` ein Schrägstrich (/) in der " +"Parameterliste einer Funktion erscheint, bedeutet dies, dass die Parameter " +"vor dem Schrägstrich reine Positionsparameter sind. Weitere Informationen " +"finden Sie unter :ref:`dem FAQ-Eintrag zu reinen Positionsparametern `." msgid "" "This function is added to the built-in namespace by the :mod:`site` module." msgstr "" +"Diese Funktion wird vom Modul :mod:`site` dem eingebauten Namensraum hinzugefügt." msgid "" "Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures " "for callables are now more comprehensive and consistent." msgstr "" +"Änderungen an :mod:`pydoc` und :mod:`inspect` führen dazu, dass die für aufrufbare " +"Objekte (Callables) gemeldeten Signaturen nun umfassender und konsistenter sind." msgid "" "Convert an integer number to a lowercase hexadecimal string prefixed with " "\"0x\". If *integer* is not a Python :class:`int` object, it has to define " "an :meth:`~object.__index__` method that returns an integer. Some examples:" msgstr "" +"Wandelt eine Ganzzahl in eine hexadezimale Zeichenkette in Kleinbuchstaben mit " +"dem Präfix „0x“ um. Wenn *integer* kein Python-Objekt vom Typ :class:`int` ist, " +"muss es eine :meth:`~object.__index__`-Methode definieren, die eine Ganzzahl " +"zurückgibt. Einige Beispiele:" msgid "" "If you want to convert an integer number to an uppercase or lower " "hexadecimal string with prefix or not, you can use either of the following " "ways:" msgstr "" +"Wenn Sie eine Ganzzahl in eine hexadezimale Zeichenkette in Groß- oder Kleinbuchstaben " +"umwandeln möchten – wahlweise mit oder ohne Präfix –, können Sie eine der folgenden " +"Methoden verwenden:" msgid "" "See also :func:`int` for converting a hexadecimal string to an integer using " "a base of 16." msgstr "" +"Siehe auch :func:`int` für die Umwandlung einer Hexadezimalzeichenkette in eine " +"Ganzzahl unter Verwendung der Basis 16." msgid "" "To obtain a hexadecimal string representation for a float, use the :meth:" "`float.hex` method." msgstr "" +"Um eine hexadezimale String-Darstellung für einen Float-Wert zu erhalten, " +"verwenden Sie die Methode :meth:`float.hex`." msgid "" "Return the \"identity\" of an object. This is an integer which is " @@ -1189,14 +1655,20 @@ msgid "" "Two objects with non-overlapping lifetimes may have the same :func:`id` " "value." msgstr "" +"Gibt die \"Identität\“ eines Objekts zurück. Dies ist eine Ganzzahl, die " +"garantiert eindeutig ist und während der Lebensdauer des Objekts konstant bleibt. " +"Zwei Objekte, deren Lebensdauern sich nicht überschneiden, können denselben :func:`id`-Wert " +"haben." msgid "This is the address of the object in memory." -msgstr "" +msgstr "Dies ist die Adresse des Objekts im Speicher." msgid "" "Raises an :ref:`auditing event ` ``builtins.id`` with argument " "``id``." msgstr "" +"Löst ein :ref:`Audit-Ereignis ` ``builtins.id`` mit dem Argument " +"``id`` aus." msgid "" "If the *prompt* argument is present, it is written to standard output " @@ -1204,6 +1676,12 @@ msgid "" "converts it to a string (stripping a trailing newline), and returns that. " "When EOF is read, :exc:`EOFError` is raised. Example::" msgstr "" +"Wenn das Argument *prompt* angegeben ist, wird es ohne abschließendes " +"Zeilenumbruchzeichen auf die Standardausgabe geschrieben. Die Funktion " +"liest dann eine Zeile von der Eingabe, wandelt sie in eine Zeichenkette um " +"(wobei ein abschließendes Zeilenumbruchzeichen entfernt wird) und gibt " +"diese zurück. Beim Erreichen des Dateiendes (EOF) wird :exc:`EOFError` " +"ausgelöst. Beispiel::“ msgid "" ">>> s = input('--> ')\n" @@ -1211,26 +1689,38 @@ msgid "" ">>> s\n" "\"Monty Python's Flying Circus\"" msgstr "" +">>> s = input('--> ')\n" +"--> Monty Python's Flying Circus\n" +">>> s\n" +"\"Monty Python's Flying Circus\"" msgid "" "If the :mod:`readline` module was loaded, then :func:`input` will use it to " "provide elaborate line editing and history features." msgstr "" +"Wenn das Modul :mod:`readline` geladen wurde, verwendet :func:`input` es, " +"um umfangreiche Funktionen zur Zeilenbearbeitung und Historienverwaltung bereitzustellen." msgid "" "Raises an :ref:`auditing event ` ``builtins.input`` with argument " "``prompt`` before reading input" msgstr "" +"Löst ein :ref:`Audit-Ereignis ` ``builtins.input`` mit dem Argument " +"``prompt`` aus, bevor die Eingabe gelesen wird" msgid "" "Raises an :ref:`auditing event ` ``builtins.input/result`` with " "the result after successfully reading input." msgstr "" +"Löst ein :ref:`Audit-Ereignis ` ``builtins.input/result`` mit dem " +"Ergebnis nach erfolgreichem Einlesen der Eingabe aus." msgid "" "Return an integer object constructed from a number or a string, or return " "``0`` if no arguments are given." msgstr "" +"Gibt ein Integer-Objekt zurück, das aus einer Zahl oder einer Zeichenkette " +"erstellt wurde, oder gibt ``0`` zurück, wenn keine Argumente angegeben sind." msgid "" ">>> int(123.45)\n" @@ -1246,12 +1736,27 @@ msgid "" ">>> int('01110011', base=2)\n" "115" msgstr "" +">>> int(123.45)\n" +"123\n" +">>> int('123')\n" +"123\n" +">>> int(' -12_345\\n')\n" +"-12345\n" +">>> int('FACE', 16)\n" +"64206\n" +">>> int('0xface', 0)\n" +"64206\n" +">>> int('01110011', base=2)\n" +"115" msgid "" "If the argument defines :meth:`~object.__int__`, ``int(x)`` returns ``x." "__int__()``. If the argument defines :meth:`~object.__index__`, it returns " "``x.__index__()``. For floating-point numbers, this truncates towards zero." msgstr "" +"Wenn das Argument :meth:`~object.__int__` definiert, gibt ``int(x)`` ``x.__int__()`` zurück. " +"Wenn das Argument :meth:`~object.__index__` definiert, gibt es ``x.__index__()`` zurück. " +"Bei Gleitkommazahlen erfolgt dabei eine Rundung in Richtung Null." msgid "" "If the argument is not a number or if *base* is given, then it must be a " @@ -1260,6 +1765,12 @@ msgid "" "``-`` (with no space in between), have leading zeros, be surrounded by " "whitespace, and have single underscores interspersed between digits." msgstr "" +"Wenn das Argument keine Zahl ist oder wenn *base* angegeben wird, muss es sich " +"um eine :class:`str`, :class:`bytes` oder :class:`bytearray` Instanz handeln, " +"die eine Ganzzahl zur Basis *base* darstellt. Optional kann der Zeichenkette ein " +"``+`` oder ``-`` vorangestellt sein (ohne Leerzeichen dazwischen); zudem kann sie " +"führende Nullen aufweisen, von Leerzeichen umgeben sein und einzelne Unterstriche " +"zwischen den Ziffern enthalten." msgid "" "A base-n integer string contains digits, each representing a value from 0 to " @@ -1273,9 +1784,20 @@ msgid "" "prefix. Base 0 also disallows leading zeros: ``int('010', 0)`` is not legal, " "while ``int('010')`` and ``int('010', 8)`` are." msgstr "" +"Eine Zeichenkette, die eine Ganzzahl zur Basis *n* darstellt, besteht aus Ziffern, " +"von denen jede einen Wert von 0 bis n-1 repräsentiert. Die Werte 0 bis 9 können " +"durch jede beliebige Unicode-Dezimalziffer dargestellt werden. Die Werte 10 bis 35 " +"lassen sich durch ``a`` bis ``z`` (oder ``A`` bis ``Z``) ausdrücken. Die Standardbasis " +"ist 10. Zulässige Basen sind 0 sowie der Bereich von 2 bis 36. Zeichenketten für " +"die Basen 2, 8 und 16 können optional mit einem Präfix wie ``0b``/``0B``, ``0o``/``0O`` " +"oder ``0x``/``0X`` versehen werden, ähnlich wie bei Ganzzahl-Literalen im Quellcode. " +"Bei der Basis 0 wird die Zeichenkette ähnlich wie ein :ref:`Ganzzahl-Literal im Quellcode " +"` interpretiert, wobei die tatsächliche Basis 2, 8, 10 oder 16 durch das Präfix " +"bestimmt wird. Zudem sind bei der Basis 0 keine führenden Nullen zulässig: ``int('010', 0)`` " +"ist ungültig, während ``int('010')`` und ``int('010', 8)`` zulässig sind." msgid "The integer type is described in :ref:`typesnumeric`." -msgstr "" +msgstr "Der Ganzzahltyp wird in :ref:`typesnumeric` beschrieben." msgid "" "If *base* is not an instance of :class:`int` and the *base* object has a :" @@ -1283,14 +1805,20 @@ msgid "" "obtain an integer for the base. Previous versions used :meth:`base.__int__ " "` instead of :meth:`base.__index__ `." msgstr "" +"Wenn *base* keine Instanz von :class:`int` ist und das *base*-Objekt über eine " +":meth:`base.__index__ `-Methode verfügt, wird diese Methode " +"aufgerufen, um eine Ganzzahl für die Basis zu erhalten. In früheren Versionen " +"wurde :meth:`base.__int__ ` anstelle von :meth:`base.__index__ " +"` verwendet." msgid "The first parameter is now positional-only." -msgstr "" +msgstr "Der erste Parameter ist nun rein positional." msgid "" "Falls back to :meth:`~object.__index__` if :meth:`~object.__int__` is not " "defined." msgstr "" +"Greift auf :meth:`~object.__index__` zurück, wenn :meth:`~object.__int__` nicht definiert ist." msgid "" ":class:`int` string inputs and string representations can be limited to help " @@ -1300,10 +1828,16 @@ msgid "" "ref:`integer string conversion length limitation ` " "documentation." msgstr "" +"Die Länge von Zeichenketten bei der Umwandlung in oder aus einem :class:`int` " +"kann begrenzt werden, um Denial-of-Service-Angriffe zu verhindern. Es wird ein " +":exc:`ValueError` ausgelöst, wenn das Limit bei der Umwandlung einer Zeichenkette " +"in ein :class:`int` überschritten wird oder wenn die Umwandlung eines :class:`int` " +"in eine Zeichenkette das Limit überschreiten würde. Siehe die Dokumentation zur " +":ref:`Längenbegrenzung bei der Umwandlung von Ganzzahlen in Zeichenketten `." msgid "" ":func:`int` no longer delegates to the :meth:`~object.__trunc__` method." -msgstr "" +msgstr ":func:`int` delegiert nicht mehr an die Methode :meth:`~object.__trunc__`." msgid "" "Return ``True`` if the *object* argument is an instance of the *classinfo* " @@ -1316,9 +1850,19 @@ msgid "" "exc:`TypeError` exception is raised. :exc:`TypeError` may not be raised for " "an invalid type if an earlier check succeeds." msgstr "" +"Gibt ``True`` zurück, wenn das Argument *object* eine Instanz des Arguments *classinfo* " +"oder einer (direkten, indirekten oder :term:`virtuellen `) Unterklasse davon ist. Wenn *object* kein Objekt des angegebenen Typs ist, " +"gibt die Funktion stets ``False`` zurück. Wenn *classinfo* ein Tupel von Typ-" +"Objekten (oder rekursiv weiteren solchen Tupeln) oder eine :ref:`types-union` aus " +"mehreren Typen ist, wird ``True`` zurückgegeben, falls *object* eine Instanz eines " +"dieser Typen ist. Wenn *classinfo* weder ein Typ noch ein Tupel von Typen (und " +"solchen Tupeln) ist, wird eine :exc:`TypeError`-Ausnahme ausgelöst. Eine :exc:`TypeError`-" +"Ausnahme wird für einen ungültigen Typ möglicherweise nicht ausgelöst, wenn eine " +"frühere Überprüfung erfolgreich ist." msgid "*classinfo* can be a :ref:`types-union`." -msgstr "" +msgstr "*classinfo* kann eine :ref:`types-union` sein." msgid "" "Return ``True`` if *class* is a subclass (direct, indirect, or :term:" @@ -1328,6 +1872,13 @@ msgid "" "return ``True`` if *class* is a subclass of any entry in *classinfo*. In " "any other case, a :exc:`TypeError` exception is raised." msgstr "" +"Gibt ``True`` zurück, wenn *class* eine Unterklasse (direkt, indirekt oder :term:" +"`virtuell `) von *classinfo* ist. Eine Klasse gilt als " +"Unterklasse ihrer selbst. *classinfo* kann ein Tupel von Klassenobjekten (oder " +"rekursiv weitere solcher Tupel) oder eine :ref:`types-union` sein; in diesem " +"Fall wird ``True`` zurückgegeben, wenn *class* eine Unterklasse irgendeines " +"Eintrags in *classinfo* ist. In allen anderen Fällen wird eine :exc:`TypeError`-Ausnahme " +"ausgelöst." msgid "" "Return an :term:`iterator` object. The first argument is interpreted very " @@ -1343,15 +1894,30 @@ msgid "" "the value returned is equal to *sentinel*, :exc:`StopIteration` will be " "raised, otherwise the value will be returned." msgstr "" +"Gibt ein :term:`Iterator`-Objekt zurück. Das erste Argument wird je nach " +"Vorhandensein des zweiten Arguments sehr unterschiedlich interpretiert. " +"Ohne ein zweites Argument muss das einzige Argument ein Container-Objekt sein, " +"das das :term:`iterable`-Protokoll (die Methode :meth:`~object.__iter__`) " +"oder das Sequenzprotokoll (die Methode :meth:`~object.__getitem__` mit " +"ganzzahligen Argumenten beginnend bei ``0``) unterstützt. Wird keines dieser " +"Protokolle unterstützt, so wird ein :exc:`TypeError` ausgelöst. Wenn das zweite " +"Argument, *sentinel*, angegeben ist, muss das erste Argument ein aufrufbares " +"Objekt (*callable*) sein. Der in diesem Fall erzeugte Iterator ruft bei jedem " +"Aufruf seiner Methode :meth:`~iterator.__next__` das aufrufbare Objekt ohne " +"Argumente auf; entspricht der Rückgabewert *sentinel*, so wird :exc:`StopIteration` " +"ausgelöst, andernfalls wird der Wert zurückgegeben." msgid "See also :ref:`typeiter`." -msgstr "" +msgstr "Siehe auch :ref:`typeiter`." msgid "" "One useful application of the second form of :func:`iter` is to build a " "block-reader. For example, reading fixed-width blocks from a binary database " "file until the end of file is reached::" msgstr "" +"Eine nützliche Anwendung der zweiten Form von :func:`iter` ist die Erstellung " +"eines Block-Readers. Zum Beispiel das Lesen von Blöcken fester Größe aus einer " +"binären Datenbankdatei bis zum Erreichen des Dateiende::" msgid "" "from functools import partial\n" @@ -1359,44 +1925,63 @@ msgid "" " for block in iter(partial(f.read, 64), b''):\n" " process_block(block)" msgstr "" +"from functools import partial\n" +"with open('mydata.db', 'rb') as f:\n" +" for block in iter(partial(f.read, 64), b''):\n" +" process_block(block)" msgid "" "Return the length (the number of items) of an object. The argument may be a " "sequence (such as a string, bytes, tuple, list, or range) or a collection " "(such as a dictionary, set, or frozen set)." msgstr "" +"Gibt die Länge (die Anzahl der Elemente) eines Objekts zurück. Das Argument kann eine " +"Sequenz (wie etwa ein String, Bytes, ein Tupel, eine Liste oder ein Range-Objekt) oder eine Collection " +"(wie etwa ein Dictionary, ein Set oder ein Frozen Set) sein." msgid "" -"``len`` raises :exc:`OverflowError` on lengths larger than :data:`sys." -"maxsize`, such as :class:`range(2 ** 100) `." +"``len`` raises :exc:`OverflowError` on lengths larger than :data:`sys.maxsize`, " +"such as :class:`range(2 ** 100) `." msgstr "" +"``len`` löst bei Längen größer als :data:`sys.maxsize` eine :exc:`OverflowError`-Ausnahme aus." +"Z. B. :class:`range(2 ** 100) `." msgid "" "Rather than being a function, :class:`list` is actually a mutable sequence " "type, as documented in :ref:`typesseq-list` and :ref:`typesseq`." msgstr "" +"Anstatt eine Funktion zu sein, ist :class:`list` eigentlich ein veränderbarer Sequenztyp, " +"wie in :ref:`typesseq-list` und :ref:`typesseq` dokumentiert." msgid "" "Return a mapping object representing the current local symbol table, with " "variable names as the keys, and their currently bound references as the " "values." msgstr "" +"Gibt ein Mapping-Objekt zurück, das die aktuelle lokale Symboltabelle repräsentiert, " +"wobei die Variablennamen als Schlüssel und die aktuell daran gebundenen Referenzen als Werte dienen." msgid "" "At module scope, as well as when using :func:`exec` or :func:`eval` with a " "single namespace, this function returns the same namespace as :func:" "`globals`." msgstr "" +"Auf Modulebene sowie bei der Verwendung von :func:`exec` oder :func:`eval` mit " +"einem einzigen Namensraum gibt diese Funktion denselben Namensraum zurück wie :func:`globals`." msgid "" "At class scope, it returns the namespace that will be passed to the " "metaclass constructor." msgstr "" +"Auf Klassenebene gibt es den Namensraum zurück, der an den Metaklassen-Konstruktor übergeben wird." msgid "" "When using ``exec()`` or ``eval()`` with separate local and global " "arguments, it returns the local namespace passed in to the function call." msgstr "" +"Bei der Verwendung von ``exec()`` oder ``eval()`` mit separaten lokalen und " +"globalen Argumenten wird der lokale Namensraum zurückgegeben, der an den " +"Funktionsaufruf übergeben wurde." msgid "" "In all of the above cases, each call to ``locals()`` in a given frame of " @@ -1406,6 +1991,13 @@ msgid "" "deleting local variables will immediately affect the contents of the " "returned mapping object." msgstr "" +"In allen oben genannten Fällen gibt jeder Aufruf von ``locals()`` in " +"einem bestimmten Ausführungs-Frame *dasselbe* Mapping-Objekt zurück. " +"Änderungen, die über das von ``locals()`` zurückgegebene Mapping-Objekt " +"vorgenommen werden, zeigen sich als zugewiesene, neu zugewiesene oder " +"gelöschte lokale Variablen; umgekehrt wirken sich Zuweisungen, Neuzuweisungen " +"oder das Löschen lokaler Variablen unmittelbar auf den Inhalt des zurückgegebenen " +"Mapping-Objekts aus." msgid "" "In an :term:`optimized scope` (including functions, generators, and " @@ -1417,6 +2009,15 @@ msgid "" "variables and nonlocal cell references does *not* affect the contents of " "previously returned dictionaries." msgstr "" +"In einem :term:`optimierten Gültigkeitsbereich` (einschließlich Funktionen, " +"Generatoren und Coroutinen) liefert jeder Aufruf von ``locals()`` stattdessen " +"ein neues Dictionary zurück, das die aktuellen Bindungen der lokalen Variablen " +"der Funktion sowie etwaige nonlocal-Zellreferenzen enthält. In diesem Fall " +"werden Änderungen an Namensbindungen, die über das zurückgegebene Dictionary " +"vorgenommen werden, *nicht* in die entsprechenden lokalen Variablen oder " +"nonlocal-Zellreferenzen zurückgeschrieben; zudem hat das Zuweisen, Neuzuweisen " +"oder Löschen lokaler Variablen und nonlocal-Zellreferenzen *keine* Auswirkungen " +"auf den Inhalt zuvor zurückgegebener Dictionaries." msgid "" "Calling ``locals()`` as part of a comprehension in a function, generator, or " @@ -1425,16 +2026,26 @@ msgid "" "other scopes, it behaves as if the comprehension were running as a nested " "function." msgstr "" +"Der Aufruf von ``locals()`` als Teil einer Listen-Abstraktion (comprehension) " +"in einer Funktion, einem Generator oder einer Coroutine entspricht dem Aufruf im " +"umschließenden Gültigkeitsbereich, mit der Ausnahme, dass die initialisierten " +"Iterationsvariablen der Listen-Abstraktion (comprehension) einbezogen werden. " +"In anderen Gültigkeitsbereichen verhält es sich so, als würde die " +"Listen-Abstraktion (comprehension) als verschachtelte Funktion ausgeführt." msgid "" "Calling ``locals()`` as part of a generator expression is equivalent to " "calling it in a nested generator function." msgstr "" +"Der Aufruf von ``locals()`` als Teil eines Generatorausdrucks ist gleichbedeutend mit " +"dem Aufruf innerhalb einer verschachtelten Generatorfunktion." msgid "" "The behaviour of ``locals()`` in a comprehension has been updated as " "described in :pep:`709`." msgstr "" +"Das Verhalten von ``locals()`` in einer Listen-Abstraktion (comprehension) " +"wurde wie in :pep:`709` beschrieben aktualisiert." msgid "" "As part of :pep:`667`, the semantics of mutating the mapping objects " @@ -1443,6 +2054,11 @@ msgid "" "being defined, the behaviour in other scopes remains unchanged from previous " "versions." msgstr "" +"Im Rahmen von :pep:`667` ist nun die Semantik für die Veränderung der von dieser " +"Funktion zurückgegebenen Mapping-Objekte definiert. Das Verhalten in :term:`" +"optimierten Gültigkeitsbereichen ` entspricht nun der obigen " +"Beschreibung. Abgesehen von dieser Definition bleibt das Verhalten in anderen " +"Gültigkeitsbereichen gegenüber früheren Versionen unverändert." msgid "" "Return an iterator that applies *function* to every item of *iterable*, " @@ -1454,28 +2070,47 @@ msgid "" "cases where the function inputs are already arranged into argument tuples, " "see :func:`itertools.starmap`." msgstr "" +"Gibt einen Iterator zurück, der *function* auf jedes Element von *iterable* anwendet " +"und die Ergebnisse liefert. Werden weitere *iterable*-Argumente übergeben, " +"muss *function* entsprechend viele Argumente entgegennehmen und wird parallel " +"auf die Elemente aller Iterables angewendet. Bei mehreren Iterables endet " +"der Iterator, sobald das kürzeste Iterable erschöpft ist. Ist *strict* auf ``True`` " +"gesetzt und eines der Iterables vor den anderen erschöpft, wird ein :exc:`ValueError` " +"ausgelöst. Für Fälle, in denen die Eingabewerte für die Funktion bereits als " +"Argument-Tupel vorliegen, siehe :func:`itertools.starmap`.“ msgid "Added the *strict* parameter." -msgstr "" +msgstr "Den Parameter *strict* hinzugefügt." msgid "" "Return the largest item in an iterable or the largest of two or more " "arguments." msgstr "" +"Gibt das größte Element eines iterierbaren Objekts oder das größte " +"von zwei oder mehr Argumenten zurück." msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The largest item in the iterable is returned. If two or more positional " "arguments are provided, the largest of the positional arguments is returned." msgstr "" +"Wird ein einzelnes Positionsargument übergeben, so muss es sich um ein :term:`iterable` handeln. " +"Das größte Element des Iterables wird zurückgegeben. Werden zwei oder mehr Positionsargumente " +"übergeben, so wird das größte der Positionsargumente zurückgegeben." msgid "" -"There are two optional keyword-only arguments. The *key* argument specifies " -"a one-argument ordering function like that used for :meth:`list.sort`. The " -"*default* argument specifies an object to return if the provided iterable is " -"empty. If the iterable is empty and *default* is not provided, a :exc:" -"`ValueError` is raised." + "There are two optional keyword-only arguments. The *key* argument specifies " + "a one-argument ordering function like that used for :meth:`list.sort`. The " + "*default* argument specifies an object to return if the provided iterable is " + "empty. If the iterable is empty and *default* is not provided, a :exc:" + "`ValueError` is raised." msgstr "" +"Es gibt zwei optionale Argumente, die nur als Schlüsselwortargumente übergeben " +"werden können. Das Argument *key* legt eine Sortierfunktion mit einem Argument " +"fest, wie sie auch bei :meth:`list.sort` verwendet wird. Das Argument *default* " +"gibt ein Objekt an, das zurückgegeben wird, falls das übergebene Iterable leer ist. " +"Ist das Iterable leer und wird kein *default*-Wert angegeben, so wird ein :exc:`ValueError` " +"ausgelöst." msgid "" "If multiple items are maximal, the function returns the first one " @@ -1483,28 +2118,39 @@ msgid "" "such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and ``heapq." "nlargest(1, iterable, key=keyfunc)``." msgstr "" +"Wenn mehrere Elemente maximal sind, gibt die Funktion das erste zurück, " +"auf das sie stößt. Dies steht im Einklang mit anderen Werkzeugen, die die " +"Sortierstabilität bewahren, wie etwa ``sorted(iterable, key=keyfunc, " +"reverse=True)[0]`` und ``heapq.nlargest(1, iterable, key=keyfunc)``.“ msgid "Added the *default* keyword-only parameter." -msgstr "" +msgstr "Der *default*-Parameter (nur als Keyword-Argument verwendbar) wurde hinzugefügt." msgid "The *key* can be ``None``." -msgstr "" +msgstr "Der *Schlüssel* kann ``None`` sein." msgid "" "Return a \"memory view\" object created from the given argument. See :ref:" "`typememoryview` for more information." msgstr "" +"Gibt ein aus dem angegebenen Argument erstelltes \"memory-View\“-Objekt zurück. " +"Siehe :ref:`typememoryview` für weitere Informationen. msgid "" "Return the smallest item in an iterable or the smallest of two or more " "arguments." msgstr "" +"Geben Sie das kleinste Element eines iterierbaren Objekts oder das kleinste " +"von zwei oder mehr Argumenten zurück." msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The smallest item in the iterable is returned. If two or more positional " "arguments are provided, the smallest of the positional arguments is returned." msgstr "" +"Wird ein einzelnes Positionsargument übergeben, so muss es sich um ein :term:`Iterable` handeln. " +"Das kleinste Element des Iterables wird zurückgegeben. Werden zwei oder mehr Positionsargumente " +"übergeben, so wird das kleinste der Positionsargumente zurückgegeben." msgid "" "If multiple items are minimal, the function returns the first one "