# German translation of the Python documentation. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # # Translators: # Swen Bachmann, 2026 # msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-10-19 03:08+0000\n" "PO-Revision-Date: 2026-10-13 21:00+0200\n" "Last-Translator: python-doc bot, 2025\n" "Language-Team: German (https://github.com/python/python-docs-de)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../../using/cmdline.rst:9 msgid "Command line and environment" msgstr "Befehlszeile und Umgebung" #: ../../using/cmdline.rst:11 msgid "" "The CPython interpreter scans the command line and the environment for " "various settings." msgstr "" "Der CPython-Interpreter durchsucht die Befehlszeile und die Umgebung nach " "verschiedenen Einstellungen." #: ../../using/cmdline.rst:16 msgid "" "Other implementations' command line schemes may differ. See :ref:" "`implementations` for further resources." msgstr "" "Die Befehlszeilen-Schemata anderer Umsetzungen können davon abweichen. " "Weitere Quellen stehen unter :ref:`implementations`." #: ../../using/cmdline.rst:23 msgid "Command line" msgstr "Befehlszeile" #: ../../using/cmdline.rst:25 msgid "When invoking Python, you may specify any of these options::" msgstr "Beim Aufruf von Python kannst du jede dieser Optionen angeben::" #: ../../using/cmdline.rst:27 msgid "" "python [-bBdEhiIOPqRsSuvVWx?] [-c command | -m module-name | script | - ] " "[args]" msgstr "" "python [-bBdEhiIOPqRsSuvVWx?] [-c command | -m module-name | script | - ] " "[args]" #: ../../using/cmdline.rst:29 msgid "" "The most common use case is, of course, a simple invocation of a script::" msgstr "Der häufigste Fall ist natürlich der einfache Aufruf eines Skripts::" #: ../../using/cmdline.rst:31 msgid "python myscript.py" msgstr "python myscript.py" #: ../../using/cmdline.rst:37 msgid "Interface options" msgstr "Optionen der Schnittstelle" #: ../../using/cmdline.rst:39 msgid "" "The interpreter interface resembles that of the UNIX shell, but provides " "some additional methods of invocation:" msgstr "" "Die Schnittstelle des Interpreters ähnelt der der UNIX-Shell, bietet aber " "einige zusätzliche Aufrufarten:" #: ../../using/cmdline.rst:42 msgid "" "When called with standard input connected to a tty device, it prompts for " "commands and executes them until an EOF (an end-of-file character, you can " "produce that with :kbd:`Ctrl-D` on UNIX or :kbd:`Ctrl-Z, Enter` on Windows) " "is read. For more on interactive mode, see :ref:`tut-interac`." msgstr "" "Wird er mit der Standardeingabe an einem tty-Gerät aufgerufen, fragt er nach " "Befehlen und führt sie aus, bis ein EOF gelesen wird (ein Dateiende-Zeichen, " "das du unter UNIX mit :kbd:`Ctrl-D` und unter Windows mit :kbd:`Ctrl-Z, " "Enter` erzeugst). Mehr zum interaktiven Modus unter :ref:`tut-interac`." #: ../../using/cmdline.rst:46 msgid "" "When called with a file name argument or with a file as standard input, it " "reads and executes a script from that file." msgstr "" "Wird er mit einem Dateinamen als Argument oder mit einer Datei als " "Standardeingabe aufgerufen, liest und führt er ein Skript aus dieser Datei " "aus." #: ../../using/cmdline.rst:48 msgid "" "When called with a directory name argument, it reads and executes an " "appropriately named script from that directory." msgstr "" "Wird er mit einem Verzeichnisnamen als Argument aufgerufen, liest und führt " "er ein passend benanntes Skript aus diesem Verzeichnis aus." #: ../../using/cmdline.rst:50 msgid "" "When called with ``-c command``, it executes the Python statement(s) given " "as *command*. Here *command* may contain multiple statements separated by " "newlines. Leading whitespace is significant in Python statements!" msgstr "" "Wird er mit ``-c command`` aufgerufen, führt er die als *command* " "angegebenen Python-Anweisungen aus. *command* darf dabei mehrere, durch " "Zeilenumbrüche getrennte Anweisungen enthalten. Führende Leerzeichen sind in " "Python-Anweisungen bedeutsam!" #: ../../using/cmdline.rst:53 msgid "" "When called with ``-m module-name``, the given module is located using the " "standard import mechanism and executed as a script." msgstr "" "Wird er mit ``-m module-name`` aufgerufen, wird das angegebene Modul über " "den üblichen Importmechanismus gesucht und als Skript ausgeführt." #: ../../using/cmdline.rst:56 msgid "" "In non-interactive mode, the entire input is parsed before it is executed." msgstr "" "Im nicht interaktiven Modus wird die ganze Eingabe geparst, bevor sie " "ausgeführt wird." #: ../../using/cmdline.rst:58 msgid "" "An interface option terminates the list of options consumed by the " "interpreter, all consecutive arguments will end up in :data:`sys.argv` -- " "note that the first element, subscript zero (``sys.argv[0]``), is a string " "reflecting the program's source." msgstr "" "Eine Schnittstellenoption beendet die Liste der Optionen, die der " "Interpreter verbraucht. Alle folgenden Argumente landen in :data:`sys.argv` " "— beachte, dass das erste Element, der Index null (``sys.argv[0]``), eine " "Zeichenkette ist, die die Herkunft des Programms widerspiegelt." #: ../../using/cmdline.rst:65 msgid "" "Execute the Python code in *command*. *command* can be one or more " "statements separated by newlines, with significant leading whitespace as in " "normal module code." msgstr "" "Führt den Python-Code in *command* aus. *command* kann eine oder mehrere " "durch Zeilenumbrüche getrennte Anweisungen sein, wobei führende Leerzeichen " "wie in gewöhnlichem Modulcode bedeutsam sind." #: ../../using/cmdline.rst:69 msgid "" "If this option is given, the first element of :data:`sys.argv` will be ``\"-" "c\"`` and the current directory will be added to the start of :data:`sys." "path` (allowing modules in that directory to be imported as top level " "modules)." msgstr "" "Ist diese Option angegeben, ist das erste Element von :data:`sys.argv` " "gleich ``\"-c\"``, und das aktuelle Verzeichnis wird an den Anfang von :data:" "`sys.path` gestellt (sodass Module aus diesem Verzeichnis als Module der " "obersten Ebene importiert werden können)." #: ../../using/cmdline.rst:74 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_command`` with " "argument ``command``." msgstr "" "Löst ein :ref:`Auditing-Ereignis ` ``cpython.run_command`` mit dem " "Argument ``command`` aus." #: ../../using/cmdline.rst:76 msgid "*command* is automatically dedented before execution." msgstr "" "Bei *command* wird die Einrückung vor der Ausführung automatisch entfernt." #: ../../using/cmdline.rst:81 msgid "" "Locate the module using the standard import mechanism and execute its " "contents as the :mod:`__main__` module." msgstr "" "Sucht das Modul über den üblichen Importmechanismus und führt seinen Inhalt " "als Modul :mod:`__main__` aus." #: ../../using/cmdline.rst:84 msgid "" "Since the argument is a *module* name, you must not give a file extension " "(``.py``). The module name should be a valid absolute Python module name, " "but the implementation may not always enforce this (e.g. it may allow you to " "use a name that includes a hyphen)." msgstr "" "Da das Argument der Name eines *Moduls* ist, darfst du keine Dateiendung " "angeben (``.py``). Der Modulname sollte ein gültiger absoluter Python-" "Modulname sein, die Umsetzung erzwingt das aber nicht immer (sie erlaubt dir " "zum Beispiel möglicherweise einen Namen mit Bindestrich)." #: ../../using/cmdline.rst:89 msgid "" "Package names (including namespace packages) are also permitted. When a " "package name is supplied instead of a normal module, the interpreter will " "execute ``.__main__`` as the main module. This behaviour is " "deliberately similar to the handling of directories and zipfiles that are " "passed to the interpreter as the script argument." msgstr "" "Paketnamen (einschließlich Namespace-Pakete) sind ebenfalls erlaubt. Wird " "anstelle eines gewöhnlichen Moduls ein Paketname angegeben, führt der " "Interpreter ``.__main__`` als Hauptmodul aus. Dieses Verhalten ist " "absichtlich dem Umgang mit Verzeichnissen und ZIP-Dateien nachempfunden, die " "dem Interpreter als Skriptargument übergeben werden." #: ../../using/cmdline.rst:98 msgid "" "This option cannot be used with built-in modules and extension modules " "written in C, since they do not have Python module files. However, it can " "still be used for precompiled modules, even if the original source file is " "not available." msgstr "" "Diese Option lässt sich nicht mit integrierten Modulen und mit in C " "geschriebenen Erweiterungsmodulen verwenden, weil diese keine Python-" "Moduldateien haben. Für vorkompilierte Module lässt sie sich dagegen " "verwenden, auch wenn die ursprüngliche Quelldatei nicht vorliegt." #: ../../using/cmdline.rst:103 msgid "" "If this option is given, the first element of :data:`sys.argv` will be the " "full path to the module file (while the module file is being located, the " "first element will be set to ``\"-m\"``). As with the :option:`-c` option, " "the current directory will be added to the start of :data:`sys.path`." msgstr "" "Ist diese Option angegeben, ist das erste Element von :data:`sys.argv` der " "vollständige Pfad zur Moduldatei (während die Moduldatei gesucht wird, ist " "das erste Element auf ``\"-m\"`` gesetzt). Wie bei der Option :option:`-c` " "wird das aktuelle Verzeichnis an den Anfang von :data:`sys.path` gestellt." #: ../../using/cmdline.rst:108 msgid "" ":option:`-I` option can be used to run the script in isolated mode where :" "data:`sys.path` contains neither the current directory nor the user's site-" "packages directory. All ``PYTHON*`` environment variables are ignored, too." msgstr "" "Mit der Option :option:`-I` lässt sich das Skript im abgeschotteten Modus " "ausführen, in dem :data:`sys.path` weder das aktuelle Verzeichnis noch das " "site-packages-Verzeichnis des Benutzers enthält. Alle Umgebungsvariablen " "``PYTHON*`` werden dabei ebenfalls ignoriert." #: ../../using/cmdline.rst:113 msgid "" "Many standard library modules contain code that is invoked on their " "execution as a script. An example is the :mod:`timeit` module::" msgstr "" "Viele Module der Standardbibliothek enthalten Code, der bei ihrer Ausführung " "als Skript aufgerufen wird. Ein Beispiel ist das Modul :mod:`timeit`::" #: ../../using/cmdline.rst:116 msgid "" "python -m timeit -s \"setup here\" \"benchmarked code here\"\n" "python -m timeit -h # for details" msgstr "" "python -m timeit -s \"setup here\" \"benchmarked code here\"\n" "python -m timeit -h # for details" #: ../../using/cmdline.rst:119 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_module`` with " "argument ``module-name``." msgstr "" "Löst ein :ref:`Auditing-Ereignis ` ``cpython.run_module`` mit dem " "Argument ``module-name`` aus." #: ../../using/cmdline.rst:122 msgid ":func:`runpy.run_module`" msgstr ":func:`runpy.run_module`" #: ../../using/cmdline.rst:123 ../../using/cmdline.rst:175 msgid "Equivalent functionality directly available to Python code" msgstr "" "Gleichwertige Funktionalität, die Python-Code direkt zur Verfügung steht" #: ../../using/cmdline.rst:125 msgid ":pep:`338` -- Executing modules as scripts" msgstr ":pep:`338` -- Executing modules as scripts" #: ../../using/cmdline.rst:127 msgid "Supply the package name to run a ``__main__`` submodule." msgstr "Gib den Paketnamen an, um ein Untermodul ``__main__`` auszuführen." #: ../../using/cmdline.rst:130 msgid "namespace packages are also supported" msgstr "Namespace-Pakete werden ebenfalls unterstützt" #: ../../using/cmdline.rst:137 msgid "" "Read commands from standard input (:data:`sys.stdin`). If standard input is " "a terminal, :option:`-i` is implied." msgstr "" "Liest Befehle von der Standardeingabe (:data:`sys.stdin`). Ist die " "Standardeingabe ein Terminal, gilt :option:`-i` implizit." #: ../../using/cmdline.rst:140 msgid "" "If this option is given, the first element of :data:`sys.argv` will be ``\"-" "\"`` and the current directory will be added to the start of :data:`sys." "path`." msgstr "" "Ist diese Option angegeben, ist das erste Element von :data:`sys.argv` " "gleich ``\"-\"``, und das aktuelle Verzeichnis wird an den Anfang von :data:" "`sys.path` gestellt." #: ../../using/cmdline.rst:144 ../../using/cmdline.rst:852 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_stdin`` with no " "arguments." msgstr "" "Löst ein :ref:`Auditing-Ereignis ` ``cpython.run_stdin`` ohne " "Argumente aus." #: ../../using/cmdline.rst:150 msgid "" "Execute the Python code contained in *script*, which must be a filesystem " "path (absolute or relative) referring to either a Python file, a directory " "containing a ``__main__.py`` file, or a zipfile containing a ``__main__.py`` " "file." msgstr "" "Führt den Python-Code in *script* aus. *script* muss ein Pfad im Dateisystem " "sein (absolut oder relativ), der entweder auf eine Python-Datei, auf ein " "Verzeichnis mit einer Datei ``__main__.py`` oder auf eine ZIP-Datei mit " "einer Datei ``__main__.py`` verweist." #: ../../using/cmdline.rst:155 msgid "" "If this option is given, the first element of :data:`sys.argv` will be the " "script name as given on the command line." msgstr "" "Ist diese Option angegeben, ist das erste Element von :data:`sys.argv` der " "Skriptname, wie er auf der Befehlszeile angegeben wurde." #: ../../using/cmdline.rst:158 msgid "" "If the script name refers directly to a Python file, the directory " "containing that file is added to the start of :data:`sys.path`, and the file " "is executed as the :mod:`__main__` module." msgstr "" "Verweist der Skriptname direkt auf eine Python-Datei, wird das Verzeichnis " "dieser Datei an den Anfang von :data:`sys.path` gestellt und die Datei als " "Modul :mod:`__main__` ausgeführt." #: ../../using/cmdline.rst:162 msgid "" "If the script name refers to a directory or zipfile, the script name is " "added to the start of :data:`sys.path` and the ``__main__.py`` file in that " "location is executed as the :mod:`__main__` module." msgstr "" "Verweist der Skriptname auf ein Verzeichnis oder eine ZIP-Datei, wird der " "Skriptname an den Anfang von :data:`sys.path` gestellt und die Datei " "``__main__.py`` an diesem Ort als Modul :mod:`__main__` ausgeführt." #: ../../using/cmdline.rst:166 msgid "" ":option:`-I` option can be used to run the script in isolated mode where :" "data:`sys.path` contains neither the script's directory nor the user's site-" "packages directory. All ``PYTHON*`` environment variables are ignored, too." msgstr "" "Mit der Option :option:`-I` lässt sich das Skript im abgeschotteten Modus " "ausführen, in dem :data:`sys.path` weder das Verzeichnis des Skripts noch " "das site-packages-Verzeichnis des Benutzers enthält. Alle Umgebungsvariablen " "``PYTHON*`` werden dabei ebenfalls ignoriert." #: ../../using/cmdline.rst:171 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_file`` with " "argument ``filename``." msgstr "" "Löst ein :ref:`Auditing-Ereignis ` ``cpython.run_file`` mit dem " "Argument ``filename`` aus." #: ../../using/cmdline.rst:174 msgid ":func:`runpy.run_path`" msgstr ":func:`runpy.run_path`" #: ../../using/cmdline.rst:178 msgid "" "If no interface option is given, :option:`-i` is implied, ``sys.argv[0]`` is " "an empty string (``\"\"``) and the current directory will be added to the " "start of :data:`sys.path`. Also, tab-completion and history editing is " "automatically enabled, if available on your platform (see :ref:`rlcompleter-" "config`)." msgstr "" "Ist keine Schnittstellenoption angegeben, gilt :option:`-i` implizit, ``sys." "argv[0]`` ist eine leere Zeichenkette (``\"\"``), und das aktuelle " "Verzeichnis wird an den Anfang von :data:`sys.path` gestellt. Außerdem sind " "Tabulator-Vervollständigung und das Bearbeiten der Eingabehistorie " "automatisch eingeschaltet, sofern auf deiner Plattform verfügbar (siehe :ref:" "`rlcompleter-config`)." #: ../../using/cmdline.rst:184 msgid ":ref:`tut-invoking`" msgstr ":ref:`tut-invoking`" #: ../../using/cmdline.rst:186 msgid "Automatic enabling of tab-completion and history editing." msgstr "" "Automatisches Einschalten von Tabulator-Vervollständigung und " "Historienbearbeitung." #: ../../using/cmdline.rst:193 msgid "Generic options" msgstr "Allgemeine Optionen" #: ../../using/cmdline.rst:199 msgid "" "Print a short description of all command line options and corresponding " "environment variables and exit." msgstr "" "Gibt eine kurze Beschreibung aller Befehlszeilenoptionen und der zugehörigen " "Umgebungsvariablen aus und beendet sich." #: ../../using/cmdline.rst:204 msgid "" "Print a short description of Python-specific environment variables and exit." msgstr "" "Gibt eine kurze Beschreibung der Python-spezifischen Umgebungsvariablen aus " "und beendet sich." #: ../../using/cmdline.rst:211 msgid "" "Print a description of implementation-specific :option:`-X` options and exit." msgstr "" "Gibt eine Beschreibung der umsetzungsspezifischen :option:`-X`-Optionen aus " "und beendet sich." #: ../../using/cmdline.rst:218 msgid "Print complete usage information and exit." msgstr "Gibt die vollständigen Verwendungshinweise aus und beendet sich." #: ../../using/cmdline.rst:225 msgid "Print the Python version number and exit. Example output could be:" msgstr "" "Gibt die Python-Versionsnummer aus und beendet sich. Eine Ausgabe könnte so " "aussehen:" #: ../../using/cmdline.rst:227 msgid "Python 3.8.0b2+" msgstr "Python 3.8.0b2+" #: ../../using/cmdline.rst:231 msgid "When given twice, print more information about the build, like:" msgstr "Zweimal angegeben, gibt sie mehr über den Build aus, etwa:" #: ../../using/cmdline.rst:233 msgid "" "Python 3.8.0b2+ (3.8:0c076caaa8, Apr 20 2019, 21:55:00)\n" "[GCC 6.2.0 20161005]" msgstr "" "Python 3.8.0b2+ (3.8:0c076caaa8, Apr 20 2019, 21:55:00)\n" "[GCC 6.2.0 20161005]" #: ../../using/cmdline.rst:238 msgid "The ``-VV`` option." msgstr "Die Option ``-VV``." #: ../../using/cmdline.rst:245 msgid "Miscellaneous options" msgstr "Verschiedene Optionen" #: ../../using/cmdline.rst:249 msgid "" "Issue a warning when converting :class:`bytes` or :class:`bytearray` to :" "class:`str` without specifying encoding or comparing :class:`!bytes` or :" "class:`!bytearray` with :class:`!str` or :class:`!bytes` with :class:`int`. " "Issue an error when the option is given twice (:option:`!-bb`)." msgstr "" "Gibt eine Warnung aus, wenn :class:`bytes` oder :class:`bytearray` ohne " "Angabe einer Kodierung in :class:`str` umgewandelt wird oder wenn :class:`!" "bytes` beziehungsweise :class:`!bytearray` mit :class:`!str` oder :class:`!" "bytes` mit :class:`int` verglichen wird. Gibt einen Fehler aus, wenn die " "Option zweimal angegeben wird (:option:`!-bb`)." #: ../../using/cmdline.rst:254 msgid "Affects also comparisons of :class:`bytes` with :class:`int`." msgstr "Betrifft auch Vergleiche von :class:`bytes` mit :class:`int`." #: ../../using/cmdline.rst:259 msgid "" "If given, Python won't try to write ``.pyc`` files on the import of source " "modules. See also :envvar:`PYTHONDONTWRITEBYTECODE`." msgstr "" "Ist sie angegeben, versucht Python nicht, beim Import von Quellmodulen ``." "pyc``-Dateien zu schreiben. Siehe auch :envvar:`PYTHONDONTWRITEBYTECODE`." #: ../../using/cmdline.rst:265 msgid "" "Control the validation behavior of hash-based ``.pyc`` files. See :ref:`pyc-" "invalidation`. When set to ``default``, checked and unchecked hash-based " "bytecode cache files are validated according to their default semantics. " "When set to ``always``, all hash-based ``.pyc`` files, whether checked or " "unchecked, are validated against their corresponding source file. When set " "to ``never``, hash-based ``.pyc`` files are not validated against their " "corresponding source files." msgstr "" "Steuert das Prüfverhalten für hashbasierte ``.pyc``-Dateien. Siehe :ref:`pyc-" "invalidation`. Bei ``default`` werden geprüfte und ungeprüfte hashbasierte " "Bytecode-Cache-Dateien nach ihrer jeweiligen Standardbedeutung validiert. " "Bei ``always`` werden alle hashbasierten ``.pyc``-Dateien gegen ihre " "zugehörige Quelldatei validiert, gleich ob geprüft oder ungeprüft. Bei " "``never`` werden hashbasierte ``.pyc``-Dateien nicht gegen ihre zugehörigen " "Quelldateien validiert." #: ../../using/cmdline.rst:273 msgid "" "The semantics of timestamp-based ``.pyc`` files are unaffected by this " "option." msgstr "" "Die Bedeutung zeitstempelbasierter ``.pyc``-Dateien bleibt von dieser Option " "unberührt." #: ../../using/cmdline.rst:279 msgid "" "Turn on parser debugging output (for expert only). See also the :envvar:" "`PYTHONDEBUG` environment variable." msgstr "" "Schaltet die Debug-Ausgabe des Parsers ein (nur für Fachleute). Siehe auch " "die Umgebungsvariable :envvar:`PYTHONDEBUG`." #: ../../using/cmdline.rst:282 msgid "" "This option requires a :ref:`debug build of Python `, otherwise " "it's ignored." msgstr "" "Diese Option setzt einen :ref:`Debug-Build von Python ` voraus, " "andernfalls wird sie ignoriert." #: ../../using/cmdline.rst:288 msgid "" "Ignore all ``PYTHON*`` environment variables, e.g. :envvar:`PYTHONPATH` and :" "envvar:`PYTHONHOME`, that might be set." msgstr "" "Ignoriert alle gesetzten Umgebungsvariablen ``PYTHON*``, etwa :envvar:" "`PYTHONPATH` und :envvar:`PYTHONHOME`." #: ../../using/cmdline.rst:291 msgid "See also the :option:`-P` and :option:`-I` (isolated) options." msgstr "Siehe auch die Optionen :option:`-P` und :option:`-I` (abgeschottet)." #: ../../using/cmdline.rst:296 msgid "Enter interactive mode after execution." msgstr "Wechselt nach der Ausführung in den interaktiven Modus." #: ../../using/cmdline.rst:298 msgid "" "Using the :option:`-i` option will enter interactive mode in any of the " "following circumstances\\:" msgstr "" "Mit der Option :option:`-i` wird in jedem der folgenden Fälle in den " "interaktiven Modus gewechselt\\:" #: ../../using/cmdline.rst:300 msgid "When a script is passed as first argument" msgstr "Wenn ein Skript als erstes Argument übergeben wird" #: ../../using/cmdline.rst:301 msgid "When the :option:`-c` option is used" msgstr "Wenn die Option :option:`-c` verwendet wird" #: ../../using/cmdline.rst:302 msgid "When the :option:`-m` option is used" msgstr "Wenn die Option :option:`-m` verwendet wird" #: ../../using/cmdline.rst:304 msgid "" "Interactive mode will start even when :data:`sys.stdin` does not appear to " "be a terminal. The :envvar:`PYTHONSTARTUP` file is not read." msgstr "" "Der interaktive Modus startet auch dann, wenn :data:`sys.stdin` kein " "Terminal zu sein scheint. Die Datei :envvar:`PYTHONSTARTUP` wird nicht " "gelesen." #: ../../using/cmdline.rst:307 msgid "" "This can be useful to inspect global variables or a stack trace when a " "script raises an exception. See also :envvar:`PYTHONINSPECT`." msgstr "" "Das kann nützlich sein, um globale Variablen oder einen Stack-Trace zu " "untersuchen, wenn ein Skript eine Ausnahme auslöst. Siehe auch :envvar:" "`PYTHONINSPECT`." #: ../../using/cmdline.rst:313 msgid "" "Run Python in isolated mode. This also implies :option:`-E`, :option:`-P` " "and :option:`-s` options." msgstr "" "Führt Python im abgeschotteten Modus aus. Das zieht auch die Optionen :" "option:`-E`, :option:`-P` und :option:`-s` nach sich." #: ../../using/cmdline.rst:316 msgid "" "In isolated mode :data:`sys.path` contains neither the script's directory " "nor the user's site-packages directory. All ``PYTHON*`` environment " "variables are ignored, too. Further restrictions may be imposed to prevent " "the user from injecting malicious code." msgstr "" "Im abgeschotteten Modus enthält :data:`sys.path` weder das Verzeichnis des " "Skripts noch das site-packages-Verzeichnis des Benutzers. Alle " "Umgebungsvariablen ``PYTHON*`` werden ebenfalls ignoriert. Weitere " "Einschränkungen können hinzukommen, um das Einschleusen von Schadcode durch " "den Benutzer zu verhindern." #: ../../using/cmdline.rst:326 msgid "" "Remove assert statements and any code conditional on the value of :const:" "`__debug__`. Augment the filename for compiled (:term:`bytecode`) files by " "adding ``.opt-1`` before the ``.pyc`` extension (see :pep:`488`). See also :" "envvar:`PYTHONOPTIMIZE`." msgstr "" "Entfernt assert-Anweisungen und jeden Code, der vom Wert von :const:" "`__debug__` abhängt. Ergänzt den Dateinamen kompilierter Dateien (:term:" "`Bytecode `) um ``.opt-1`` vor der Endung ``.pyc`` (siehe :pep:" "`488`). Siehe auch :envvar:`PYTHONOPTIMIZE`." #: ../../using/cmdline.rst:331 ../../using/cmdline.rst:341 msgid "Modify ``.pyc`` filenames according to :pep:`488`." msgstr "Die ``.pyc``-Dateinamen werden gemäß :pep:`488` geändert." #: ../../using/cmdline.rst:337 msgid "" "Do :option:`-O` and also discard docstrings. Augment the filename for " "compiled (:term:`bytecode`) files by adding ``.opt-2`` before the ``.pyc`` " "extension (see :pep:`488`)." msgstr "" "Wirkt wie :option:`-O` und verwirft zusätzlich Docstrings. Ergänzt den " "Dateinamen kompilierter Dateien (:term:`Bytecode `) um ``.opt-2`` " "vor der Endung ``.pyc`` (siehe :pep:`488`)." #: ../../using/cmdline.rst:347 msgid "Don't prepend a potentially unsafe path to :data:`sys.path`:" msgstr "" "Stellt keinen möglicherweise unsicheren Pfad an den Anfang von :data:`sys." "path`:" #: ../../using/cmdline.rst:349 msgid "" "``python -m module`` command line: Don't prepend the current working " "directory." msgstr "" "Befehlszeile ``python -m module``: Das aktuelle Arbeitsverzeichnis wird " "nicht vorangestellt." #: ../../using/cmdline.rst:351 msgid "" "``python script.py`` command line: Don't prepend the script's directory. If " "it's a symbolic link, resolve symbolic links." msgstr "" "Befehlszeile ``python script.py``: Das Verzeichnis des Skripts wird nicht " "vorangestellt. Ist es eine symbolische Verknüpfung, werden symbolische " "Verknüpfungen aufgelöst." #: ../../using/cmdline.rst:353 msgid "" "``python -c code`` and ``python`` (REPL) command lines: Don't prepend an " "empty string, which means the current working directory." msgstr "" "Befehlszeilen ``python -c code`` und ``python`` (REPL): Es wird keine leere " "Zeichenkette vorangestellt, die für das aktuelle Arbeitsverzeichnis steht." #: ../../using/cmdline.rst:356 msgid "" "See also the :envvar:`PYTHONSAFEPATH` environment variable, and :option:`-E` " "and :option:`-I` (isolated) options." msgstr "" "Siehe auch die Umgebungsvariable :envvar:`PYTHONSAFEPATH` sowie die " "Optionen :option:`-E` und :option:`-I` (abgeschottet)." #: ../../using/cmdline.rst:364 msgid "" "Don't display the copyright and version messages even in interactive mode." msgstr "" "Zeigt die Copyright- und Versionsmeldungen auch im interaktiven Modus nicht " "an." #: ../../using/cmdline.rst:371 msgid "" "Turn on hash randomization. This option only has an effect if the :envvar:" "`PYTHONHASHSEED` environment variable is set to anything other than " "``random``, since hash randomization is enabled by default." msgstr "" "Schaltet die Hash-Randomisierung ein. Diese Option wirkt nur, wenn die " "Umgebungsvariable :envvar:`PYTHONHASHSEED` auf etwas anderes als ``random`` " "gesetzt ist, denn die Hash-Randomisierung ist standardmäßig eingeschaltet." #: ../../using/cmdline.rst:375 msgid "" "On previous versions of Python, this option turns on hash randomization, so " "that the :meth:`~object.__hash__` values of str and bytes objects are " "\"salted\" with an unpredictable random value. Although they remain " "constant within an individual Python process, they are not predictable " "between repeated invocations of Python." msgstr "" "In früheren Python-Versionen schaltet diese Option die Hash-Randomisierung " "ein, sodass die :meth:`~object.__hash__`-Werte von str- und bytes-Objekten " "mit einem unvorhersehbaren Zufallswert „gesalzen“ werden. Innerhalb eines " "einzelnen Python-Prozesses bleiben sie zwar konstant, über wiederholte " "Python-Aufrufe hinweg sind sie jedoch nicht vorhersehbar." #: ../../using/cmdline.rst:381 msgid "" "Hash randomization is intended to provide protection against a denial-of-" "service caused by carefully chosen inputs that exploit the worst case " "performance of a dict construction, *O*\\ (*n*\\ :sup:`2`) complexity. See " "https://ocert.org/advisories/ocert-2011-003.html for details." msgstr "" "Die Hash-Randomisierung soll vor einem Denial-of-Service schützen, der durch " "sorgfältig gewählte Eingaben entsteht, die das Verhalten im schlechtesten " "Fall beim Aufbau eines dict ausnutzen – eine Komplexität von *O*\\ (*n*\\ :" "sup:`2`). Einzelheiten unter https://ocert.org/advisories/ocert-2011-003." "html." #: ../../using/cmdline.rst:386 msgid "" ":envvar:`PYTHONHASHSEED` allows you to set a fixed value for the hash seed " "secret." msgstr "" "Mit :envvar:`PYTHONHASHSEED` kannst du einen festen Wert für das Hash-Seed-" "Geheimnis setzen." #: ../../using/cmdline.rst:391 msgid "The option is no longer ignored." msgstr "Die Option wird nicht mehr ignoriert." #: ../../using/cmdline.rst:397 msgid "" "Don't add the :data:`user site-packages directory ` to :data:" "`sys.path`." msgstr "" "Fügt das :data:`site-packages-Verzeichnis des Benutzers ` " "nicht zu :data:`sys.path` hinzu." #: ../../using/cmdline.rst:400 msgid "See also :envvar:`PYTHONNOUSERSITE`." msgstr "Siehe auch :envvar:`PYTHONNOUSERSITE`." #: ../../using/cmdline.rst:404 ../../using/cmdline.rst:949 #: ../../using/cmdline.rst:961 msgid ":pep:`370` -- Per user site-packages directory" msgstr ":pep:`370` -- site-packages-Verzeichnis pro Benutzer" #: ../../using/cmdline.rst:409 msgid "" "Disable the import of the module :mod:`site` and the site-dependent " "manipulations of :data:`sys.path` that it entails. Also disable these " "manipulations if :mod:`site` is explicitly imported later (call :func:`site." "main` if you want them to be triggered)." msgstr "" "Schaltet den Import des Moduls :mod:`site` und die damit verbundenen site-" "abhängigen Änderungen an :data:`sys.path` ab. Diese Änderungen bleiben auch " "dann abgeschaltet, wenn :mod:`site` später ausdrücklich importiert wird " "(rufe :func:`site.main` auf, wenn du sie auslösen willst)." #: ../../using/cmdline.rst:417 msgid "" "Force the stdout and stderr streams to be unbuffered. This option has no " "effect on the stdin stream." msgstr "" "Erzwingt, dass die Ströme stdout und stderr ungepuffert sind. Auf den Strom " "stdin hat diese Option keine Wirkung." #: ../../using/cmdline.rst:420 msgid "See also :envvar:`PYTHONUNBUFFERED`." msgstr "Siehe auch :envvar:`PYTHONUNBUFFERED`." #: ../../using/cmdline.rst:422 msgid "The text layer of the stdout and stderr streams now is unbuffered." msgstr "Die Textschicht der Ströme stdout und stderr ist jetzt ungepuffert." #: ../../using/cmdline.rst:428 msgid "" "Print a message each time a module is initialized, showing the place " "(filename or built-in module) from which it is loaded. When given twice (:" "option:`!-vv`), print a message for each file that is checked for when " "searching for a module. Also provides information on module cleanup at exit." msgstr "" "Gibt bei jeder Initialisierung eines Moduls eine Meldung aus, die den Ort " "nennt (Dateiname oder integriertes Modul), von dem es geladen wird. Zweimal " "angegeben (:option:`!-vv`), gibt sie für jede Datei eine Meldung aus, die " "bei der Suche nach einem Modul geprüft wird. Außerdem liefert sie " "Informationen zum Aufräumen der Module beim Beenden." #: ../../using/cmdline.rst:433 msgid "" "The :mod:`site` module reports the site-specific paths and :file:`.pth` " "files being processed." msgstr "" "Das Modul :mod:`site` meldet die site-spezifischen Pfade und die " "verarbeiteten :file:`.pth`-Dateien." #: ../../using/cmdline.rst:437 msgid "See also :envvar:`PYTHONVERBOSE`." msgstr "Siehe auch :envvar:`PYTHONVERBOSE`." #: ../../using/cmdline.rst:443 msgid "" "Warning control. Python's warning machinery by default prints warning " "messages to :data:`sys.stderr`." msgstr "" "Steuerung der Warnungen. Die Warnmaschinerie von Python gibt Warnmeldungen " "standardmäßig auf :data:`sys.stderr` aus." #: ../../using/cmdline.rst:446 ../../using/cmdline.rst:977 msgid "" "The simplest settings apply a particular action unconditionally to all " "warnings emitted by a process (even those that are otherwise ignored by " "default)::" msgstr "" "Die einfachsten Einstellungen wenden eine bestimmte Aktion bedingungslos auf " "alle Warnungen an, die ein Prozess ausgibt (auch auf die, die sonst " "standardmäßig ignoriert werden)::" #: ../../using/cmdline.rst:450 msgid "" "-Wdefault # Warn once per call location\n" "-Werror # Convert to exceptions\n" "-Walways # Warn every time\n" "-Wall # Same as -Walways\n" "-Wmodule # Warn once per calling module\n" "-Wonce # Warn once per Python process\n" "-Wignore # Never warn" msgstr "" "-Wdefault # Einmal pro Aufrufstelle warnen\n" "-Werror # In Ausnahmen umwandeln\n" "-Walways # Jedes Mal warnen\n" "-Wall # Dasselbe wie -Walways\n" "-Wmodule # Einmal pro aufrufendem Modul warnen\n" "-Wonce # Einmal pro Python-Prozess warnen\n" "-Wignore # Niemals warnen" #: ../../using/cmdline.rst:458 msgid "" "The action names can be abbreviated as desired and the interpreter will " "resolve them to the appropriate action name. For example, ``-Wi`` is the " "same as ``-Wignore``." msgstr "" "Die Aktionsnamen lassen sich beliebig abkürzen, der Interpreter löst sie zum " "passenden Aktionsnamen auf. So ist ``-Wi`` dasselbe wie ``-Wignore``." #: ../../using/cmdline.rst:462 msgid "The full form of argument is::" msgstr "Die vollständige Form des Arguments lautet::" #: ../../using/cmdline.rst:464 msgid "action:message:category:module:lineno" msgstr "action:message:category:module:lineno" #: ../../using/cmdline.rst:466 msgid "" "Empty fields match all values; trailing empty fields may be omitted. For " "example ``-W ignore::DeprecationWarning`` ignores all DeprecationWarning " "warnings." msgstr "" "Leere Felder passen auf alle Werte, nachgestellte leere Felder dürfen " "weggelassen werden. So ignoriert ``-W ignore::DeprecationWarning`` alle " "DeprecationWarning-Warnungen." #: ../../using/cmdline.rst:470 msgid "" "The *action* field is as explained above but only applies to warnings that " "match the remaining fields." msgstr "" "Das Feld *action* wirkt wie oben beschrieben, gilt aber nur für Warnungen, " "die auf die übrigen Felder passen." #: ../../using/cmdline.rst:473 msgid "" "The *message* field must match the whole warning message; this match is case-" "insensitive." msgstr "" "Das Feld *message* muss auf die gesamte Warnmeldung passen, wobei Groß- und " "Kleinschreibung keine Rolle spielt." #: ../../using/cmdline.rst:476 msgid "" "The *category* field matches the warning category (ex: " "``DeprecationWarning``). This must be a class name; the match test whether " "the actual warning category of the message is a subclass of the specified " "warning category." msgstr "" "Das Feld *category* passt auf die Warnkategorie (z. B. " "``DeprecationWarning``). Dabei muss es sich um einen Klassennamen handeln. " "Geprüft wird, ob die tatsächliche Warnkategorie der Meldung eine Unterklasse " "der angegebenen Warnkategorie ist." #: ../../using/cmdline.rst:481 msgid "" "The *module* field matches the (fully qualified) module name; this match is " "case-sensitive." msgstr "" "Das Feld *module* passt auf den (vollständig qualifizierten) Modulnamen, " "wobei Groß- und Kleinschreibung hier eine Rolle spielt." #: ../../using/cmdline.rst:484 msgid "" "The *lineno* field matches the line number, where zero matches all line " "numbers and is thus equivalent to an omitted line number." msgstr "" "Das Feld *lineno* passt auf die Zeilennummer, wobei null auf alle " "Zeilennummern passt und damit einer weggelassenen Zeilennummer entspricht." #: ../../using/cmdline.rst:487 msgid "" "Multiple :option:`-W` options can be given; when a warning matches more than " "one option, the action for the last matching option is performed. Invalid :" "option:`-W` options are ignored (though, a warning message is printed about " "invalid options when the first warning is issued)." msgstr "" "Es können mehrere Optionen :option:`-W` angegeben werden. Passt eine Warnung " "auf mehr als eine Option, wird die Aktion der letzten passenden Option " "ausgeführt. Ungültige Optionen :option:`-W` werden ignoriert (allerdings " "wird beim Ausgeben der ersten Warnung eine Meldung über ungültige Optionen " "ausgegeben)." #: ../../using/cmdline.rst:492 msgid "" "Warnings can also be controlled using the :envvar:`PYTHONWARNINGS` " "environment variable and from within a Python program using the :mod:" "`warnings` module. For example, the :func:`warnings.filterwarnings` function " "can be used to use a regular expression on the warning message." msgstr "" "Warnungen lassen sich auch über die Umgebungsvariable :envvar:" "`PYTHONWARNINGS` und innerhalb eines Python-Programms über das Modul :mod:" "`warnings` steuern. Mit der Funktion :func:`warnings.filterwarnings` kannst " "du zum Beispiel einen regulären Ausdruck auf die Warnmeldung anwenden." #: ../../using/cmdline.rst:497 ../../using/cmdline.rst:989 msgid "" "See :ref:`warning-filter` and :ref:`describing-warning-filters` for more " "details." msgstr "" "Weitere Einzelheiten unter :ref:`warning-filter` und :ref:`describing-" "warning-filters`." #: ../../using/cmdline.rst:503 msgid "" "Skip the first line of the source, allowing use of non-Unix forms of ``#!" "cmd``." msgstr "" "Überspringt die erste Zeile des Quelltextes, sodass auch Nicht-Unix-Formen " "von ``#!cmd`` verwendet werden können." #: ../../using/cmdline.rst:506 msgid "" "This can be used to turn a Python script into a Windows batch file. " "Similarly to adding a shebang line and setting the executable bit on Unix, " "the extension of the Python script can be changed to ``.bat`` and the " "following line can be added at the start of the script:" msgstr "" "Damit lässt sich ein Python-Skript in eine Windows-Batchdatei verwandeln. " "Ähnlich wie beim Hinzufügen einer Shebang-Zeile und dem Setzen des " "Ausführungsbits unter Unix kannst du die Endung des Python-Skripts in ``." "bat`` ändern und folgende Zeile am Anfang des Skripts einfügen:" #: ../../using/cmdline.rst:511 msgid "@py -x \"%~f0\" %* & exit /b" msgstr "@py -x \"%~f0\" %* & exit /b" #: ../../using/cmdline.rst:515 msgid "Or, to specify the path to the Python interpreter explicitly:" msgstr "Oder, um den Pfad zum Python-Interpreter ausdrücklich anzugeben:" #: ../../using/cmdline.rst:517 msgid "@\"C:\\Path\\to\\python.exe\" -x \"%~f0\" %* & exit /b" msgstr "@\"C:\\Path\\to\\python.exe\" -x \"%~f0\" %* & exit /b" #: ../../using/cmdline.rst:521 msgid "" "Unlike a shebang line which is a Python comment, this line is not valid " "Python syntax, and the :option:`-x` option is needed to skip it." msgstr "" "Anders als eine Shebang-Zeile, die ein Python-Kommentar ist, ist diese Zeile " "keine gültige Python-Syntax, deshalb braucht es die Option :option:`-x`, um " "sie zu überspringen." #: ../../using/cmdline.rst:527 msgid "" "Reserved for various implementation-specific options. CPython currently " "defines the following possible values:" msgstr "" "Für verschiedene umsetzungsspezifische Optionen reserviert. CPython " "definiert derzeit die folgenden möglichen Werte:" #: ../../using/cmdline.rst:530 msgid "" "``-X faulthandler`` to enable :mod:`faulthandler`. See also :envvar:" "`PYTHONFAULTHANDLER`." msgstr "" "``-X faulthandler`` schaltet :mod:`faulthandler` ein. Siehe auch :envvar:" "`PYTHONFAULTHANDLER`." #: ../../using/cmdline.rst:535 msgid "" "``-X showrefcount`` to output the total reference count and number of used " "memory blocks when the program finishes or after each statement in the " "interactive interpreter. This only works on :ref:`debug builds `." msgstr "" "``-X showrefcount`` gibt die Gesamtzahl der Referenzen und die Anzahl der " "belegten Speicherblöcke aus, wenn das Programm endet oder nach jeder " "Anweisung im interaktiven Interpreter. Das funktioniert nur bei :ref:`Debug-" "Builds `." #: ../../using/cmdline.rst:542 msgid "" "``-X tracemalloc`` to start tracing Python memory allocations using the :mod:" "`tracemalloc` module. By default, only the most recent frame is stored in a " "traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start tracing with a " "traceback limit of *NFRAME* frames. See :func:`tracemalloc.start` and :" "envvar:`PYTHONTRACEMALLOC` for more information." msgstr "" "``-X tracemalloc`` beginnt damit, Python-Speicheranforderungen über das " "Modul :mod:`tracemalloc` mitzuschreiben. Standardmäßig wird im Traceback " "einer Aufzeichnung nur der jüngste Frame gespeichert. Mit ``-X " "tracemalloc=NFRAME`` beginnt das Mitschreiben mit einer Traceback-Grenze von " "*NFRAME* Frames. Mehr dazu unter :func:`tracemalloc.start` und :envvar:" "`PYTHONTRACEMALLOC`." #: ../../using/cmdline.rst:551 msgid "" "``-X int_max_str_digits`` configures the :ref:`integer string conversion " "length limitation `. See also :envvar:" "`PYTHONINTMAXSTRDIGITS`." msgstr "" "``-X int_max_str_digits`` stellt die :ref:`Längenbegrenzung bei der " "Umwandlung zwischen Ganzzahl und Zeichenkette ` ein. " "Siehe auch :envvar:`PYTHONINTMAXSTRDIGITS`." #: ../../using/cmdline.rst:557 msgid "" "``-X importtime`` to show how long each import takes. It shows module name, " "cumulative time (including nested imports) and self time (excluding nested " "imports). Note that its output may be broken in multi-threaded " "application. Typical usage is ``python -X importtime -c 'import asyncio'``." msgstr "" "``-X importtime`` zeigt, wie lange jeder Import dauert. Es zeigt den " "Modulnamen, die aufsummierte Zeit (einschließlich verschachtelter Importe) " "und die Eigenzeit (ohne verschachtelte Importe). Beachte, dass die Ausgabe " "in einer Anwendung mit mehreren Threads durcheinandergeraten kann. Üblich " "ist der Aufruf ``python -X importtime -c 'import asyncio'``." #: ../../using/cmdline.rst:562 msgid "" "``-X importtime=2`` enables additional output that indicates when an " "imported module has already been loaded. In such cases, the string " "``cached`` will be printed in both time columns." msgstr "" "``-X importtime=2`` schaltet eine zusätzliche Ausgabe ein, die anzeigt, wenn " "ein importiertes Modul bereits geladen war. In diesen Fällen wird in beiden " "Zeitspalten die Zeichenkette ``cached`` ausgegeben." #: ../../using/cmdline.rst:566 msgid "See also :envvar:`PYTHONPROFILEIMPORTTIME`." msgstr "Siehe auch :envvar:`PYTHONPROFILEIMPORTTIME`." #: ../../using/cmdline.rst:572 msgid "" "Added ``-X importtime=2`` to also trace imports of loaded modules, and " "reserved values other than ``1`` and ``2`` for future use." msgstr "" "``-X importtime=2`` hinzugefügt, um auch Importe bereits geladener Module " "mitzuschreiben. Andere Werte als ``1`` und ``2`` sind für künftige " "Verwendung reserviert." #: ../../using/cmdline.rst:575 msgid "" "``-X dev``: enable :ref:`Python Development Mode `, introducing " "additional runtime checks that are too expensive to be enabled by default. " "See also :envvar:`PYTHONDEVMODE`." msgstr "" "``-X dev``: schaltet den :ref:`Python-Entwicklungsmodus ` ein, der " "zusätzliche Prüfungen zur Laufzeit einführt, die zu aufwendig sind, um " "standardmäßig eingeschaltet zu sein. Siehe auch :envvar:`PYTHONDEVMODE`." #: ../../using/cmdline.rst:581 msgid "" "``-X utf8`` enables the :ref:`Python UTF-8 Mode `. ``-X utf8=0`` " "explicitly disables :ref:`Python UTF-8 Mode ` (even when it would " "otherwise activate automatically). See also :envvar:`PYTHONUTF8`." msgstr "" "``-X utf8`` schaltet den :ref:`Python-UTF-8-Modus ` ein. ``-X " "utf8=0`` schaltet den :ref:`Python-UTF-8-Modus ` ausdrücklich ab " "(auch wenn er sich sonst automatisch einschalten würde). Siehe auch :envvar:" "`PYTHONUTF8`." #: ../../using/cmdline.rst:588 msgid "" "``-X pycache_prefix=PATH`` enables writing ``.pyc`` files to a parallel tree " "rooted at the given directory instead of to the code tree. See also :envvar:" "`PYTHONPYCACHEPREFIX`." msgstr "" "``-X pycache_prefix=PATH`` schreibt ``.pyc``-Dateien in einen parallelen " "Baum unterhalb des angegebenen Verzeichnisses anstatt in den Codebaum. Siehe " "auch :envvar:`PYTHONPYCACHEPREFIX`." #: ../../using/cmdline.rst:594 msgid "" "``-X warn_default_encoding`` issues a :class:`EncodingWarning` when the " "locale-specific default encoding is used for opening files. See also :envvar:" "`PYTHONWARNDEFAULTENCODING`." msgstr "" "``-X warn_default_encoding`` löst eine :class:`EncodingWarning` aus, wenn " "beim Öffnen von Dateien die vom Gebietsschema abhängige Standardkodierung " "verwendet wird. Siehe auch :envvar:`PYTHONWARNDEFAULTENCODING`." #: ../../using/cmdline.rst:600 msgid "" "``-X no_debug_ranges`` disables the inclusion of the tables mapping extra " "location information (end line, start column offset and end column offset) " "to every instruction in code objects. This is useful when smaller code " "objects and pyc files are desired as well as suppressing the extra visual " "location indicators when the interpreter displays tracebacks. See also :" "envvar:`PYTHONNODEBUGRANGES`." msgstr "" "``-X no_debug_ranges`` schaltet das Mitführen der Tabellen ab, die jedem " "Befehl in Codeobjekten zusätzliche Ortsangaben zuordnen (Endzeile, " "Startspalte und Endspalte). Das ist nützlich, wenn kleinere Codeobjekte und " "pyc-Dateien gewünscht sind und wenn die zusätzlichen sichtbaren " "Ortsmarkierungen unterdrückt werden sollen, mit denen der Interpreter " "Tracebacks anzeigt. Siehe auch :envvar:`PYTHONNODEBUGRANGES`." #: ../../using/cmdline.rst:609 msgid "" "``-X frozen_modules`` determines whether or not frozen modules are ignored " "by the import machinery. A value of ``on`` means they get imported and " "``off`` means they are ignored. The default is ``on`` if this is an " "installed Python (the normal case). If it's under development (running from " "the source tree) then the default is ``off``. Note that the :mod:`!" "importlib_bootstrap` and :mod:`!importlib_bootstrap_external` frozen modules " "are always used, even if this flag is set to ``off``. See also :envvar:" "`PYTHON_FROZEN_MODULES`." msgstr "" "``-X frozen_modules`` legt fest, ob eingefrorene Module vom " "Importmechanismus ignoriert werden. Der Wert ``on`` bedeutet, dass sie " "importiert werden, ``off``, dass sie ignoriert werden. Standard ist ``on`` " "bei einem installierten Python (der Normalfall). Befindet es sich in " "Entwicklung (Ausführung aus dem Quellbaum), ist der Standard ``off``. " "Beachte, dass die eingefrorenen Module :mod:`!importlib_bootstrap` und :mod:" "`!importlib_bootstrap_external` immer verwendet werden, auch wenn dieser " "Schalter auf ``off`` steht. Siehe auch :envvar:`PYTHON_FROZEN_MODULES`." #: ../../using/cmdline.rst:620 msgid "" "``-X perf`` enables support for the Linux ``perf`` profiler. When this " "option is provided, the ``perf`` profiler will be able to report Python " "calls. This option is only available on some platforms and will do nothing " "if is not supported on the current system. The default value is \"off\". See " "also :envvar:`PYTHONPERFSUPPORT` and :ref:`perf_profiling`." msgstr "" "``-X perf`` schaltet die Unterstützung für den Linux-Profiler ``perf`` ein. " "Ist diese Option angegeben, kann der Profiler ``perf`` Python-Aufrufe " "melden. Diese Option gibt es nur auf einigen Plattformen und sie tut nichts, " "wenn sie auf dem aktuellen System nicht unterstützt wird. Der Standardwert " "ist „off“. Siehe auch :envvar:`PYTHONPERFSUPPORT` und :ref:`perf_profiling`." #: ../../using/cmdline.rst:628 msgid "" "``-X perf_jit`` enables support for the Linux ``perf`` profiler with DWARF " "support. When this option is provided, the ``perf`` profiler will be able to " "report Python calls using DWARF information. This option is only available " "on some platforms and will do nothing if is not supported on the current " "system. The default value is \"off\". See also :envvar:" "`PYTHON_PERF_JIT_SUPPORT` and :ref:`perf_profiling`." msgstr "" "``-X perf_jit`` schaltet die Unterstützung für den Linux-Profiler ``perf`` " "mit DWARF-Unterstützung ein. Ist diese Option angegeben, kann der Profiler " "``perf`` Python-Aufrufe anhand von DWARF-Informationen melden. Diese Option " "gibt es nur auf einigen Plattformen und sie tut nichts, wenn sie auf dem " "aktuellen System nicht unterstützt wird. Der Standardwert ist „off“. Siehe " "auch :envvar:`PYTHON_PERF_JIT_SUPPORT` und :ref:`perf_profiling`." #: ../../using/cmdline.rst:637 #, fuzzy msgid "" "``-X disable-remote-debug`` disables the remote debugging support as " "described in :pep:`768`. This includes both the functionality to schedule " "code for execution in another process and the functionality to receive code " "for execution in the current process." msgstr "" "``-X disable_remote_debug`` schaltet die Unterstützung für das Fern-" "Debugging ab, wie sie in :pep:`768` beschrieben ist. Das betrifft sowohl die " "Möglichkeit, Code zur Ausführung in einem anderen Prozess einzuplanen, als " "auch die Möglichkeit, Code zur Ausführung im aktuellen Prozess zu empfangen." #: ../../using/cmdline.rst:642 msgid "" "This option is only available on some platforms and will do nothing if is " "not supported on the current system. See also :envvar:" "`PYTHON_DISABLE_REMOTE_DEBUG` and :pep:`768`." msgstr "" "Diese Option gibt es nur auf einigen Plattformen und sie tut nichts, wenn " "sie auf dem aktuellen System nicht unterstützt wird. Siehe auch :envvar:" "`PYTHON_DISABLE_REMOTE_DEBUG` und :pep:`768`." #: ../../using/cmdline.rst:648 msgid "" ":samp:`-X cpu_count={n}` overrides :func:`os.cpu_count`, :func:`os." "process_cpu_count`, and :func:`multiprocessing.cpu_count`. *n* must be " "greater than or equal to 1. This option may be useful for users who need to " "limit CPU resources of a container system. See also :envvar:" "`PYTHON_CPU_COUNT`. If *n* is ``default``, nothing is overridden." msgstr "" ":samp:`-X cpu_count={n}` überschreibt :func:`os.cpu_count`, :func:`os." "process_cpu_count` und :func:`multiprocessing.cpu_count`. *n* muss größer " "oder gleich 1 sein. Diese Option kann nützlich sein, wenn die CPU-Ressourcen " "eines Container-Systems begrenzt werden müssen. Siehe auch :envvar:" "`PYTHON_CPU_COUNT`. Ist *n* gleich ``default``, wird nichts überschrieben." #: ../../using/cmdline.rst:657 msgid "" ":samp:`-X presite={package.module}` specifies a module that should be " "imported before the :mod:`site` module is executed and before the :mod:" "`__main__` module exists. Therefore, the imported module isn't :mod:" "`__main__`. This can be used to execute code early during Python " "initialization. Python needs to be :ref:`built in debug mode ` " "for this option to exist. See also :envvar:`PYTHON_PRESITE`." msgstr "" ":samp:`-X presite={package.module}` gibt ein Modul an, das importiert werden " "soll, bevor das Modul :mod:`site` ausgeführt wird und bevor das Modul :mod:" "`__main__` existiert. Das importierte Modul ist deshalb nicht :mod:" "`__main__`. Damit lässt sich früh während der Python-Initialisierung Code " "ausführen. Python muss :ref:`im Debug-Modus gebaut ` sein, " "damit es diese Option gibt. Siehe auch :envvar:`PYTHON_PRESITE`." #: ../../using/cmdline.rst:666 msgid "" ":samp:`-X gil={0,1}` forces the GIL to be disabled or enabled, respectively. " "Setting to ``0`` is only available in builds configured with :option:`--" "disable-gil`. See also :envvar:`PYTHON_GIL` and :ref:`whatsnew313-free-" "threaded-cpython`." msgstr "" ":samp:`-X gil={0,1}` erzwingt, dass der GIL abgeschaltet beziehungsweise " "eingeschaltet wird. Der Wert ``0`` ist nur in Builds verfügbar, die mit :" "option:`--disable-gil` konfiguriert sind. Siehe auch :envvar:`PYTHON_GIL` " "und :ref:`whatsnew313-free-threaded-cpython`." #: ../../using/cmdline.rst:673 msgid "" ":samp:`-X thread_inherit_context={0,1}` causes :class:`~threading.Thread` " "to, by default, use a copy of context of the caller of ``Thread.start()`` " "when starting. Otherwise, threads will start with an empty context. If " "unset, the value of this option defaults to ``1`` on free-threaded builds " "and to ``0`` otherwise. See also :envvar:`PYTHON_THREAD_INHERIT_CONTEXT`." msgstr "" ":samp:`-X thread_inherit_context={0,1}` lässt :class:`~threading.Thread` " "beim Start standardmäßig eine Kopie des Kontexts des Aufrufers von ``Thread." "start()`` verwenden. Andernfalls starten Threads mit einem leeren Kontext. " "Ist sie nicht gesetzt, ist der Standardwert dieser Option ``1`` bei Free-" "Threaded-Builds und sonst ``0``. Siehe auch :envvar:" "`PYTHON_THREAD_INHERIT_CONTEXT`." #: ../../using/cmdline.rst:682 msgid "" ":samp:`-X context_aware_warnings={0,1}` causes the :class:`warnings." "catch_warnings` context manager to use a :class:`~contextvars.ContextVar` to " "store warnings filter state. If unset, the value of this option defaults to " "``1`` on free-threaded builds and to ``0`` otherwise. See also :envvar:" "`PYTHON_CONTEXT_AWARE_WARNINGS`." msgstr "" ":samp:`-X context_aware_warnings={0,1}` lässt den Kontextmanager :class:" "`warnings.catch_warnings` eine :class:`~contextvars.ContextVar` verwenden, " "um den Zustand des Warnfilters zu speichern. Ist sie nicht gesetzt, ist der " "Standardwert dieser Option ``1`` bei Free-Threaded-Builds und sonst ``0``. " "Siehe auch :envvar:`PYTHON_CONTEXT_AWARE_WARNINGS`." #: ../../using/cmdline.rst:690 msgid "" ":samp:`-X tlbc={0,1}` enables (1, the default) or disables (0) thread-local " "bytecode in builds configured with :option:`--disable-gil`. When disabled, " "this also disables the specializing interpreter. See also :envvar:" "`PYTHON_TLBC`." msgstr "" ":samp:`-X tlbc={0,1}` schaltet threadlokalen Bytecode in Builds ein (1, der " "Standard) oder ab (0), die mit :option:`--disable-gil` konfiguriert sind. " "Ist er abgeschaltet, ist damit auch der spezialisierende Interpreter " "abgeschaltet. Siehe auch :envvar:`PYTHON_TLBC`." #: ../../using/cmdline.rst:697 msgid "" "It also allows passing arbitrary values and retrieving them through the :" "data:`sys._xoptions` dictionary." msgstr "" "Außerdem lassen sich damit beliebige Werte übergeben und über das " "Wörterbuch :data:`sys._xoptions` abrufen." #: ../../using/cmdline.rst:702 msgid "Removed the ``-X showalloccount`` option." msgstr "Die Option ``-X showalloccount`` wurde entfernt." #: ../../using/cmdline.rst:705 msgid "Removed the ``-X oldparser`` option." msgstr "Die Option ``-X oldparser`` wurde entfernt." #: ../../using/cmdline.rst:710 msgid "" ":option:`!-J` is no longer reserved for use by Jython_, and now has no " "special meaning." msgstr "" ":option:`!-J` ist nicht mehr für Jython_ reserviert und hat jetzt keine " "besondere Bedeutung mehr." #: ../../using/cmdline.rst:718 msgid "Controlling color" msgstr "Farbsteuerung" #: ../../using/cmdline.rst:720 msgid "" "The Python interpreter is configured by default to use colors to highlight " "output in certain situations such as when displaying tracebacks. This " "behavior can be controlled by setting different environment variables." msgstr "" "Der Python-Interpreter ist standardmäßig so eingestellt, dass er Ausgaben in " "bestimmten Situationen farblich hervorhebt, etwa beim Anzeigen von " "Tracebacks. Dieses Verhalten lässt sich über verschiedene Umgebungsvariablen " "steuern." #: ../../using/cmdline.rst:724 msgid "" "Setting the environment variable ``TERM`` to ``dumb`` will disable color." msgstr "" "Setzt du die Umgebungsvariable ``TERM`` auf ``dumb``, wird die Farbe " "abgeschaltet." #: ../../using/cmdline.rst:726 msgid "" "If the |FORCE_COLOR|_ environment variable is set, then color will be " "enabled regardless of the value of TERM. This is useful on CI systems which " "aren’t terminals but can still display ANSI escape sequences." msgstr "" "Ist die Umgebungsvariable |FORCE_COLOR|_ gesetzt, wird die Farbe unabhängig " "vom Wert von TERM eingeschaltet. Das ist nützlich auf CI-Systemen, die keine " "Terminals sind, aber dennoch ANSI-Escape-Sequenzen anzeigen können." #: ../../using/cmdline.rst:730 msgid "" "If the |NO_COLOR|_ environment variable is set, Python will disable all " "color in the output. This takes precedence over ``FORCE_COLOR``." msgstr "" "Ist die Umgebungsvariable |NO_COLOR|_ gesetzt, schaltet Python alle Farbe in " "der Ausgabe ab. Das hat Vorrang vor ``FORCE_COLOR``." #: ../../using/cmdline.rst:733 msgid "" "All these environment variables are used also by other tools to control " "color output. To control the color output only in the Python interpreter, " "the :envvar:`PYTHON_COLORS` environment variable can be used. This variable " "takes precedence over ``NO_COLOR``, which in turn takes precedence over " "``FORCE_COLOR``." msgstr "" "Alle diese Umgebungsvariablen werden auch von anderen Werkzeugen zur " "Steuerung der Farbausgabe verwendet. Um die Farbausgabe nur im Python-" "Interpreter zu steuern, lässt sich die Umgebungsvariable :envvar:" "`PYTHON_COLORS` verwenden. Diese Variable hat Vorrang vor ``NO_COLOR``, das " "wiederum Vorrang vor ``FORCE_COLOR`` hat." #: ../../using/cmdline.rst:743 msgid "Environment variables" msgstr "Umgebungsvariablen" #: ../../using/cmdline.rst:745 msgid "" "These environment variables influence Python's behavior, they are processed " "before the command-line switches other than -E or -I. It is customary that " "command-line switches override environmental variables where there is a " "conflict." msgstr "" "Diese Umgebungsvariablen beeinflussen das Verhalten von Python. Verarbeitet " "werden sie vor den Befehlszeilenschaltern, mit Ausnahme von -E und -I. " "Üblicherweise haben Befehlszeilenschalter bei einem Widerspruch Vorrang vor " "Umgebungsvariablen." #: ../../using/cmdline.rst:752 msgid "" "Change the location of the standard Python libraries. By default, the " "libraries are searched in :file:`{prefix}/lib/python{version}` and :file:" "`{exec_prefix}/lib/python{version}`, where :file:`{prefix}` and :file:" "`{exec_prefix}` are installation-dependent directories, both defaulting to :" "file:`/usr/local`." msgstr "" "Ändert den Ort der Standard-Python-Bibliotheken. Standardmäßig werden die " "Bibliotheken in :file:`{prefix}/lib/python{version}` und :file:" "`{exec_prefix}/lib/python{version}` gesucht, wobei :file:`{prefix}` und :" "file:`{exec_prefix}` installationsabhängige Verzeichnisse sind, die beide " "standardmäßig :file:`/usr/local` lauten." #: ../../using/cmdline.rst:758 msgid "" "When :envvar:`PYTHONHOME` is set to a single directory, its value replaces " "both :file:`{prefix}` and :file:`{exec_prefix}`. To specify different " "values for these, set :envvar:`PYTHONHOME` to :file:`{prefix}:{exec_prefix}`." msgstr "" "Ist :envvar:`PYTHONHOME` auf ein einzelnes Verzeichnis gesetzt, ersetzt " "dieser Wert sowohl :file:`{prefix}` als auch :file:`{exec_prefix}`. Um dafür " "unterschiedliche Werte anzugeben, setze :envvar:`PYTHONHOME` auf :file:" "`{prefix}:{exec_prefix}`." #: ../../using/cmdline.rst:765 msgid "" "Augment the default search path for module files. The format is the same as " "the shell's :envvar:`PATH`: one or more directory pathnames separated by :" "data:`os.pathsep` (e.g. colons on Unix or semicolons on Windows). Non-" "existent directories are silently ignored." msgstr "" "Erweitert den Standardsuchpfad für Moduldateien. Das Format entspricht dem " "von :envvar:`PATH` in der Shell: ein oder mehrere Verzeichnispfade, getrennt " "durch :data:`os.pathsep` (also Doppelpunkte unter Unix oder Semikolons unter " "Windows). Nicht vorhandene Verzeichnisse werden stillschweigend ignoriert." #: ../../using/cmdline.rst:770 msgid "" "In addition to normal directories, individual :envvar:`PYTHONPATH` entries " "may refer to zipfiles containing pure Python modules (in either source or " "compiled form). Extension modules cannot be imported from zipfiles." msgstr "" "Neben gewöhnlichen Verzeichnissen dürfen einzelne Einträge in :envvar:" "`PYTHONPATH` auch auf ZIP-Dateien verweisen, die reine Python-Module " "enthalten (im Quelltext oder kompiliert). Erweiterungsmodule lassen sich " "nicht aus ZIP-Dateien importieren." #: ../../using/cmdline.rst:774 msgid "" "The default search path is installation dependent, but generally begins " "with :file:`{prefix}/lib/python{version}` (see :envvar:`PYTHONHOME` above). " "It is *always* appended to :envvar:`PYTHONPATH`." msgstr "" "Der Standardsuchpfad ist installationsabhängig, beginnt aber in der Regel " "mit :file:`{prefix}/lib/python{version}` (siehe :envvar:`PYTHONHOME` oben). " "Er wird *immer* an :envvar:`PYTHONPATH` angehängt." #: ../../using/cmdline.rst:778 msgid "" "An additional directory will be inserted in the search path in front of :" "envvar:`PYTHONPATH` as described above under :ref:`using-on-interface-" "options`. The search path can be manipulated from within a Python program as " "the variable :data:`sys.path`." msgstr "" "Ein zusätzliches Verzeichnis wird, wie oben unter :ref:`using-on-interface-" "options` beschrieben, im Suchpfad vor :envvar:`PYTHONPATH` eingefügt. Der " "Suchpfad lässt sich innerhalb eines Python-Programms über die Variable :data:" "`sys.path` verändern." #: ../../using/cmdline.rst:786 msgid "" "If this is set to a non-empty string, don't prepend a potentially unsafe " "path to :data:`sys.path`: see the :option:`-P` option for details." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, wird kein möglicherweise " "unsicherer Pfad an den Anfang von :data:`sys.path` gestellt. Einzelheiten " "dazu unter der Option :option:`-P`." #: ../../using/cmdline.rst:794 msgid "" "If this is set to a non-empty string, it overrides the :data:`sys." "platlibdir` value." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, überschreibt sie den Wert " "von :data:`sys.platlibdir`." #: ../../using/cmdline.rst:802 msgid "" "If this is the name of a readable file, the Python commands in that file are " "executed before the first prompt is displayed in interactive mode. The file " "is executed in the same namespace where interactive commands are executed so " "that objects defined or imported in it can be used without qualification in " "the interactive session. You can also change the prompts :data:`sys.ps1` " "and :data:`sys.ps2` and the hook :data:`sys.__interactivehook__` in this " "file." msgstr "" "Ist das der Name einer lesbaren Datei, werden die Python-Befehle in dieser " "Datei ausgeführt, bevor im interaktiven Modus die erste Eingabeaufforderung " "erscheint. Die Datei wird im selben Namensraum ausgeführt, in dem auch die " "interaktiven Befehle ausgeführt werden, sodass darin definierte oder " "importierte Objekte in der interaktiven Sitzung ohne Qualifizierung " "verwendet werden können. Du kannst in dieser Datei auch die " "Eingabeaufforderungen :data:`sys.ps1` und :data:`sys.ps2` sowie den Hook :" "data:`sys.__interactivehook__` ändern." #: ../../using/cmdline.rst:809 ../../using/cmdline.rst:811 msgid "" "Raises an :ref:`auditing event ` ``cpython.run_startup`` with the " "filename as the argument when called on startup." msgstr "" "Löst beim Aufruf während des Starts ein :ref:`Auditing-Ereignis ` " "``cpython.run_startup`` mit dem Dateinamen als Argument aus." #: ../../using/cmdline.rst:817 msgid "" "If this is set to a non-empty string it is equivalent to specifying the :" "option:`-O` option. If set to an integer, it is equivalent to specifying :" "option:`-O` multiple times." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, entspricht das der Angabe " "der Option :option:`-O`. Ist sie auf eine Ganzzahl gesetzt, entspricht das " "der mehrfachen Angabe von :option:`-O`." #: ../../using/cmdline.rst:824 msgid "" "If this is set, it names a callable using dotted-path notation. The module " "containing the callable will be imported and then the callable will be run " "by the default implementation of :func:`sys.breakpointhook` which itself is " "called by built-in :func:`breakpoint`. If not set, or set to the empty " "string, it is equivalent to the value \"pdb.set_trace\". Setting this to " "the string \"0\" causes the default implementation of :func:`sys." "breakpointhook` to do nothing but return immediately." msgstr "" "Ist sie gesetzt, benennt sie ein aufrufbares Objekt in Punktschreibweise. " "Das Modul, das dieses Objekt enthält, wird importiert, und anschließend wird " "das Objekt von der Standardumsetzung von :func:`sys.breakpointhook` " "ausgeführt, die selbst von der integrierten Funktion :func:`breakpoint` " "aufgerufen wird. Ist sie nicht gesetzt oder auf die leere Zeichenkette " "gesetzt, entspricht das dem Wert „pdb.set_trace“. Setzt du sie auf die " "Zeichenkette „0“, tut die Standardumsetzung von :func:`sys.breakpointhook` " "nichts, sondern kehrt sofort zurück." #: ../../using/cmdline.rst:836 msgid "" "If this is set to a non-empty string it is equivalent to specifying the :" "option:`-d` option. If set to an integer, it is equivalent to specifying :" "option:`-d` multiple times." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, entspricht das der Angabe " "der Option :option:`-d`. Ist sie auf eine Ganzzahl gesetzt, entspricht das " "der mehrfachen Angabe von :option:`-d`." #: ../../using/cmdline.rst:840 msgid "" "This environment variable requires a :ref:`debug build of Python `, otherwise it's ignored." msgstr "" "Diese Umgebungsvariable setzt einen :ref:`Debug-Build von Python ` voraus, andernfalls wird sie ignoriert." #: ../../using/cmdline.rst:846 msgid "" "If this is set to a non-empty string it is equivalent to specifying the :" "option:`-i` option." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, entspricht das der Angabe " "der Option :option:`-i`." #: ../../using/cmdline.rst:849 msgid "" "This variable can also be modified by Python code using :data:`os.environ` " "to force inspect mode on program termination." msgstr "" "Diese Variable lässt sich auch von Python-Code über :data:`os.environ` " "verändern, um beim Programmende den Inspect-Modus zu erzwingen." #: ../../using/cmdline.rst:854 msgid "(also 3.11.10, 3.10.15, 3.9.20, and 3.8.20) Emits audit events." msgstr "" "(auch 3.11.10, 3.10.15, 3.9.20 und 3.8.20) Löst Auditing-Ereignisse aus." #: ../../using/cmdline.rst:857 msgid "" "Uses PyREPL if possible, in which case :envvar:`PYTHONSTARTUP` is also " "executed. Emits audit events." msgstr "" "Verwendet, wenn möglich, PyREPL. In diesem Fall wird auch :envvar:" "`PYTHONSTARTUP` ausgeführt. Löst Auditing-Ereignisse aus." #: ../../using/cmdline.rst:864 msgid "" "If this is set to a non-empty string it is equivalent to specifying the :" "option:`-u` option." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, entspricht das der Angabe " "der Option :option:`-u`." #: ../../using/cmdline.rst:870 msgid "" "If this is set to a non-empty string it is equivalent to specifying the :" "option:`-v` option. If set to an integer, it is equivalent to specifying :" "option:`-v` multiple times." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, entspricht das der Angabe " "der Option :option:`-v`. Ist sie auf eine Ganzzahl gesetzt, entspricht das " "der mehrfachen Angabe von :option:`-v`." #: ../../using/cmdline.rst:877 msgid "" "If this is set, Python ignores case in :keyword:`import` statements. This " "only works on Windows and macOS." msgstr "" "Ist sie gesetzt, ignoriert Python in :keyword:`import`-Anweisungen die Groß- " "und Kleinschreibung. Das funktioniert nur unter Windows und macOS." #: ../../using/cmdline.rst:883 msgid "" "If this is set to a non-empty string, Python won't try to write ``.pyc`` " "files on the import of source modules. This is equivalent to specifying " "the :option:`-B` option." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, versucht Python nicht, " "beim Import von Quellmodulen ``.pyc``-Dateien zu schreiben. Das entspricht " "der Angabe der Option :option:`-B`." #: ../../using/cmdline.rst:890 msgid "" "If this is set, Python will write ``.pyc`` files in a mirror directory tree " "at this path, instead of in ``__pycache__`` directories within the source " "tree. This is equivalent to specifying the :option:`-X` " "``pycache_prefix=PATH`` option." msgstr "" "Ist sie gesetzt, schreibt Python ``.pyc``-Dateien in einen gespiegelten " "Verzeichnisbaum unter diesem Pfad anstatt in Verzeichnisse ``__pycache__`` " "innerhalb des Quellbaums. Das entspricht der Angabe der Option :option:`-X` " "``pycache_prefix=PATH``." #: ../../using/cmdline.rst:900 msgid "" "If this variable is not set or set to ``random``, a random value is used to " "seed the hashes of str and bytes objects." msgstr "" "Ist diese Variable nicht gesetzt oder auf ``random`` gesetzt, wird ein " "Zufallswert als Startwert für die Hashes von str- und bytes-Objekten " "verwendet." #: ../../using/cmdline.rst:903 msgid "" "If :envvar:`PYTHONHASHSEED` is set to an integer value, it is used as a " "fixed seed for generating the hash() of the types covered by the hash " "randomization." msgstr "" "Ist :envvar:`PYTHONHASHSEED` auf einen ganzzahligen Wert gesetzt, wird " "dieser als fester Startwert verwendet, um hash() für die von der Hash-" "Randomisierung betroffenen Typen zu erzeugen." #: ../../using/cmdline.rst:907 msgid "" "Its purpose is to allow repeatable hashing, such as for selftests for the " "interpreter itself, or to allow a cluster of python processes to share hash " "values." msgstr "" "Das soll wiederholbares Hashing ermöglichen, etwa für Selbsttests des " "Interpreters selbst, oder es mehreren Python-Prozessen in einem Verbund " "erlauben, dieselben Hash-Werte zu verwenden." #: ../../using/cmdline.rst:911 msgid "" "The integer must be a decimal number in the range [0,4294967295]. " "Specifying the value 0 will disable hash randomization." msgstr "" "Die Ganzzahl muss eine Dezimalzahl im Bereich [0,4294967295] sein. Mit dem " "Wert 0 wird die Hash-Randomisierung abgeschaltet." #: ../../using/cmdline.rst:918 msgid "" "If this variable is set to an integer, it is used to configure the " "interpreter's global :ref:`integer string conversion length limitation " "`." msgstr "" "Ist diese Variable auf eine Ganzzahl gesetzt, stellt sie die globale :ref:" "`Längenbegrenzung bei der Umwandlung zwischen Ganzzahl und Zeichenkette " "` des Interpreters ein." #: ../../using/cmdline.rst:926 msgid "" "If this is set before running the interpreter, it overrides the encoding " "used for stdin/stdout/stderr, in the syntax ``encodingname:errorhandler``. " "Both the ``encodingname`` and the ``:errorhandler`` parts are optional and " "have the same meaning as in :func:`str.encode`." msgstr "" "Ist sie vor dem Start des Interpreters gesetzt, überschreibt sie die für " "stdin/stdout/stderr verwendete Kodierung, in der Form ``encodingname:" "errorhandler``. Sowohl der Teil ``encodingname`` als auch der Teil ``:" "errorhandler`` ist optional und hat dieselbe Bedeutung wie in :func:`str." "encode`." #: ../../using/cmdline.rst:931 msgid "" "For stderr, the ``:errorhandler`` part is ignored; the handler will always " "be ``'backslashreplace'``." msgstr "" "Bei stderr wird der Teil ``:errorhandler`` ignoriert, der Handler ist immer " "``'backslashreplace'``." #: ../../using/cmdline.rst:934 msgid "The ``encodingname`` part is now optional." msgstr "Der Teil ``encodingname`` ist jetzt optional." #: ../../using/cmdline.rst:937 msgid "" "On Windows, the encoding specified by this variable is ignored for " "interactive console buffers unless :envvar:`PYTHONLEGACYWINDOWSSTDIO` is " "also specified. Files and pipes redirected through the standard streams are " "not affected." msgstr "" "Unter Windows wird die von dieser Variable angegebene Kodierung bei " "interaktiven Konsolenpuffern ignoriert, sofern nicht zusätzlich :envvar:" "`PYTHONLEGACYWINDOWSSTDIO` angegeben ist. Dateien und Pipes, die über die " "Standardströme umgeleitet werden, sind nicht betroffen." #: ../../using/cmdline.rst:944 msgid "" "If this is set, Python won't add the :data:`user site-packages directory " "` to :data:`sys.path`." msgstr "" "Ist sie gesetzt, fügt Python das :data:`site-packages-Verzeichnis des " "Benutzers ` nicht zu :data:`sys.path` hinzu." #: ../../using/cmdline.rst:954 msgid "" "Defines the :data:`user base directory `, which is used to " "compute the path of the :data:`user site-packages directory ` and :ref:`installation paths ` for " "``python -m pip install --user``." msgstr "" "Legt das :data:`Basisverzeichnis des Benutzers ` fest, aus " "dem der Pfad des :data:`site-packages-Verzeichnisses des Benutzers ` und die :ref:`Installationspfade ` für " "``python -m pip install --user`` berechnet werden." #: ../../using/cmdline.rst:966 msgid "" "If this environment variable is set, ``sys.argv[0]`` will be set to its " "value instead of the value got through the C runtime. Only works on macOS." msgstr "" "Ist diese Umgebungsvariable gesetzt, wird ``sys.argv[0]`` auf ihren Wert " "gesetzt statt auf den Wert aus der C-Laufzeitumgebung. Funktioniert nur " "unter macOS." #: ../../using/cmdline.rst:972 msgid "" "This is equivalent to the :option:`-W` option. If set to a comma separated " "string, it is equivalent to specifying :option:`-W` multiple times, with " "filters later in the list taking precedence over those earlier in the list." msgstr "" "Das entspricht der Option :option:`-W`. Ist sie auf eine durch Kommas " "getrennte Zeichenkette gesetzt, entspricht das der mehrfachen Angabe von :" "option:`-W`, wobei Filter, die weiter hinten in der Liste stehen, Vorrang " "vor früheren haben." #: ../../using/cmdline.rst:981 msgid "" "PYTHONWARNINGS=default # Warn once per call location\n" "PYTHONWARNINGS=error # Convert to exceptions\n" "PYTHONWARNINGS=always # Warn every time\n" "PYTHONWARNINGS=all # Same as PYTHONWARNINGS=always\n" "PYTHONWARNINGS=module # Warn once per calling module\n" "PYTHONWARNINGS=once # Warn once per Python process\n" "PYTHONWARNINGS=ignore # Never warn" msgstr "" "PYTHONWARNINGS=default # Einmal pro Aufrufstelle warnen\n" "PYTHONWARNINGS=error # In Ausnahmen umwandeln\n" "PYTHONWARNINGS=always # Jedes Mal warnen\n" "PYTHONWARNINGS=all # Dasselbe wie PYTHONWARNINGS=always\n" "PYTHONWARNINGS=module # Einmal pro aufrufendem Modul warnen\n" "PYTHONWARNINGS=once # Einmal pro Python-Prozess warnen\n" "PYTHONWARNINGS=ignore # Niemals warnen" #: ../../using/cmdline.rst:995 msgid "" "If this environment variable is set to a non-empty string, :func:" "`faulthandler.enable` is called at startup: install a handler for :const:" "`~signal.SIGSEGV`, :const:`~signal.SIGFPE`, :const:`~signal.SIGABRT`, :const:" "`~signal.SIGBUS` and :const:`~signal.SIGILL` signals to dump the Python " "traceback. This is equivalent to :option:`-X` ``faulthandler`` option." msgstr "" "Ist diese Umgebungsvariable auf eine nicht leere Zeichenkette gesetzt, wird " "beim Start :func:`faulthandler.enable` aufgerufen: Es wird ein Handler für " "die Signale :const:`~signal.SIGSEGV`, :const:`~signal.SIGFPE`, :const:" "`~signal.SIGABRT`, :const:`~signal.SIGBUS` und :const:`~signal.SIGILL` " "eingerichtet, der den Python-Traceback ausgibt. Das entspricht der Option :" "option:`-X` ``faulthandler``." #: ../../using/cmdline.rst:1007 msgid "" "If this environment variable is set to a non-empty string, start tracing " "Python memory allocations using the :mod:`tracemalloc` module. The value of " "the variable is the maximum number of frames stored in a traceback of a " "trace. For example, ``PYTHONTRACEMALLOC=1`` stores only the most recent " "frame. See the :func:`tracemalloc.start` function for more information. This " "is equivalent to setting the :option:`-X` ``tracemalloc`` option." msgstr "" "Ist diese Umgebungsvariable auf eine nicht leere Zeichenkette gesetzt, " "werden Python-Speicheranforderungen über das Modul :mod:`tracemalloc` " "mitgeschrieben. Der Wert der Variable ist die größte Anzahl an Frames, die " "im Traceback einer Aufzeichnung gespeichert werden. ``PYTHONTRACEMALLOC=1`` " "speichert zum Beispiel nur den jüngsten Frame. Mehr dazu bei der Funktion :" "func:`tracemalloc.start`. Das entspricht dem Setzen der Option :option:`-X` " "``tracemalloc``." #: ../../using/cmdline.rst:1020 msgid "" "If this environment variable is set to ``1``, Python will show how long each " "import takes. If set to ``2``, Python will include output for imported " "modules that have already been loaded. This is equivalent to setting the :" "option:`-X` ``importtime`` option." msgstr "" "Ist diese Umgebungsvariable auf ``1`` gesetzt, zeigt Python, wie lange jeder " "Import dauert. Auf ``2`` gesetzt, gibt Python auch importierte Module aus, " "die bereits geladen waren. Das entspricht dem Setzen der Option :option:`-X` " "``importtime``." #: ../../using/cmdline.rst:1029 msgid "" "Added ``PYTHONPROFILEIMPORTTIME=2`` to also trace imports of loaded modules." msgstr "" "``PYTHONPROFILEIMPORTTIME=2`` hinzugefügt, um auch Importe bereits geladener " "Module mitzuschreiben." #: ../../using/cmdline.rst:1034 msgid "" "If this environment variable is set to a non-empty string, enable the :ref:" "`debug mode ` of the :mod:`asyncio` module." msgstr "" "Ist diese Umgebungsvariable auf eine nicht leere Zeichenkette gesetzt, wird " "der :ref:`Debug-Modus ` des Moduls :mod:`asyncio` " "eingeschaltet." #: ../../using/cmdline.rst:1042 msgid "Set the Python memory allocators and/or install debug hooks." msgstr "" "Legt die Python-Speicherverwalter fest und/oder richtet Debug-Hooks ein." #: ../../using/cmdline.rst:1044 msgid "Set the family of memory allocators used by Python:" msgstr "Legt die Familie der von Python verwendeten Speicherverwalter fest:" #: ../../using/cmdline.rst:1046 msgid "" "``default``: use the :ref:`default memory allocators `." msgstr "" "``default``: verwendet die :ref:`Standard-Speicherverwalter `." #: ../../using/cmdline.rst:1048 msgid "" "``malloc``: use the :c:func:`malloc` function of the C library for all " "domains (:c:macro:`PYMEM_DOMAIN_RAW`, :c:macro:`PYMEM_DOMAIN_MEM`, :c:macro:" "`PYMEM_DOMAIN_OBJ`)." msgstr "" "``malloc``: verwendet die Funktion :c:func:`malloc` der C-Bibliothek für " "alle Bereiche (:c:macro:`PYMEM_DOMAIN_RAW`, :c:macro:`PYMEM_DOMAIN_MEM`, :c:" "macro:`PYMEM_DOMAIN_OBJ`)." #: ../../using/cmdline.rst:1051 msgid "" "``pymalloc``: use the :ref:`pymalloc allocator ` for :c:macro:" "`PYMEM_DOMAIN_MEM` and :c:macro:`PYMEM_DOMAIN_OBJ` domains and use the :c:" "func:`malloc` function for the :c:macro:`PYMEM_DOMAIN_RAW` domain." msgstr "" "``pymalloc``: verwendet den :ref:`pymalloc-Verwalter ` für die " "Bereiche :c:macro:`PYMEM_DOMAIN_MEM` und :c:macro:`PYMEM_DOMAIN_OBJ` und die " "Funktion :c:func:`malloc` für den Bereich :c:macro:`PYMEM_DOMAIN_RAW`." #: ../../using/cmdline.rst:1054 msgid "" "``mimalloc``: use the :ref:`mimalloc allocator ` for :c:macro:" "`PYMEM_DOMAIN_MEM` and :c:macro:`PYMEM_DOMAIN_OBJ` domains and use the :c:" "func:`malloc` function for the :c:macro:`PYMEM_DOMAIN_RAW` domain." msgstr "" "``mimalloc``: verwendet den :ref:`mimalloc-Verwalter ` für die " "Bereiche :c:macro:`PYMEM_DOMAIN_MEM` und :c:macro:`PYMEM_DOMAIN_OBJ` und die " "Funktion :c:func:`malloc` für den Bereich :c:macro:`PYMEM_DOMAIN_RAW`." #: ../../using/cmdline.rst:1058 msgid "Install :ref:`debug hooks `:" msgstr ":ref:`Debug-Hooks ` einrichten:" #: ../../using/cmdline.rst:1060 msgid "" "``debug``: install debug hooks on top of the :ref:`default memory allocators " "`." msgstr "" "``debug``: richtet Debug-Hooks über den :ref:`Standard-Speicherverwaltern " "` ein." #: ../../using/cmdline.rst:1062 msgid "``malloc_debug``: same as ``malloc`` but also install debug hooks." msgstr "" "``malloc_debug``: wie ``malloc``, richtet aber zusätzlich Debug-Hooks ein." #: ../../using/cmdline.rst:1063 msgid "``pymalloc_debug``: same as ``pymalloc`` but also install debug hooks." msgstr "" "``pymalloc_debug``: wie ``pymalloc``, richtet aber zusätzlich Debug-Hooks " "ein." #: ../../using/cmdline.rst:1064 msgid "``mimalloc_debug``: same as ``mimalloc`` but also install debug hooks." msgstr "" "``mimalloc_debug``: wie ``mimalloc``, richtet aber zusätzlich Debug-Hooks " "ein." #: ../../using/cmdline.rst:1068 msgid "" "In the :term:`free-threaded ` build, the ``malloc``, " "``malloc_debug``, ``pymalloc``, and ``pymalloc_debug`` values are not " "supported. Only ``default``, ``debug``, ``mimalloc``, and " "``mimalloc_debug`` are accepted." msgstr "" "Im :term:`free-threaded ` Build werden die Werte ``malloc``, " "``malloc_debug``, ``pymalloc`` und ``pymalloc_debug`` nicht unterstützt. " "Akzeptiert werden nur ``default``, ``debug``, ``mimalloc`` und " "``mimalloc_debug``." #: ../../using/cmdline.rst:1075 msgid "Added the ``\"default\"`` allocator." msgstr "Der Verwalter ``\"default\"`` wurde hinzugefügt." #: ../../using/cmdline.rst:1081 msgid "" "If set to a non-empty string, Python will print statistics of the :ref:" "`pymalloc memory allocator ` or the :ref:`mimalloc memory " "allocator ` (whichever is in use) every time a new object arena is " "created, and on shutdown." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, gibt Python jedes Mal, " "wenn eine neue Objekt-Arena erzeugt wird, und beim Beenden Statistiken des :" "ref:`pymalloc-Speicherverwalters ` beziehungsweise des :ref:" "`mimalloc-Speicherverwalters ` aus (je nachdem, welcher in " "Verwendung ist)." #: ../../using/cmdline.rst:1086 msgid "" "This variable is ignored if the :envvar:`PYTHONMALLOC` environment variable " "is used to force the :c:func:`malloc` allocator of the C library, or if " "Python is configured without both ``pymalloc`` and ``mimalloc`` support." msgstr "" "Diese Variable wird ignoriert, wenn über die Umgebungsvariable :envvar:" "`PYTHONMALLOC` der Verwalter :c:func:`malloc` der C-Bibliothek erzwungen " "wird oder wenn Python ohne Unterstützung für ``pymalloc`` und ``mimalloc`` " "konfiguriert ist." #: ../../using/cmdline.rst:1090 msgid "" "This variable can now also be used on Python compiled in release mode. It " "now has no effect if set to an empty string." msgstr "" "Diese Variable lässt sich jetzt auch bei einem im Release-Modus kompilierten " "Python verwenden. Auf eine leere Zeichenkette gesetzt, hat sie jetzt keine " "Wirkung." #: ../../using/cmdline.rst:1097 msgid "" "If set to a non-empty string, the default :term:`filesystem encoding and " "error handler` mode will revert to their pre-3.6 values of 'mbcs' and " "'replace', respectively. Otherwise, the new defaults 'utf-8' and " "'surrogatepass' are used." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, kehrt der Standardmodus " "für :term:`Dateisystemkodierung und Fehlerbehandlung ` zu den Werten vor 3.6 zurück, also 'mbcs' und 'replace'. " "Andernfalls werden die neuen Standardwerte 'utf-8' und 'surrogatepass' " "verwendet." #: ../../using/cmdline.rst:1102 msgid "" "This may also be enabled at runtime with :func:`sys." "_enablelegacywindowsfsencoding`." msgstr "" "Das lässt sich zur Laufzeit auch mit :func:`sys." "_enablelegacywindowsfsencoding` einschalten." #: ../../using/cmdline.rst:1105 ../../using/cmdline.rst:1119 #: ../../using/cmdline.rst:1170 msgid "Availability" msgstr "Verfügbarkeit" #: ../../using/cmdline.rst:1107 msgid "See :pep:`529` for more details." msgstr "Mehr dazu unter :pep:`529`." #: ../../using/cmdline.rst:1112 msgid "" "If set to a non-empty string, does not use the new console reader and " "writer. This means that Unicode characters will be encoded according to the " "active console code page, rather than using utf-8." msgstr "" "Ist sie auf eine nicht leere Zeichenkette gesetzt, werden der neue " "Konsolenleser und der neue Konsolenschreiber nicht verwendet. Unicode-" "Zeichen werden dann gemäß der aktiven Codepage der Konsole kodiert und nicht " "mit utf-8." #: ../../using/cmdline.rst:1116 msgid "" "This variable is ignored if the standard streams are redirected (to files or " "pipes) rather than referring to console buffers." msgstr "" "Diese Variable wird ignoriert, wenn die Standardströme (in Dateien oder " "Pipes) umgeleitet werden, anstatt auf Konsolenpuffer zu verweisen." #: ../../using/cmdline.rst:1126 msgid "" "If set to the value ``0``, causes the main Python command line application " "to skip coercing the legacy ASCII-based C and POSIX locales to a more " "capable UTF-8 based alternative." msgstr "" "Ist sie auf den Wert ``0`` gesetzt, überspringt die Hauptanwendung der " "Python-Befehlszeile das Umlenken der alten ASCII-basierten Gebietsschemata C " "und POSIX auf eine leistungsfähigere UTF-8-basierte Alternative." #: ../../using/cmdline.rst:1130 msgid "" "If this variable is *not* set (or is set to a value other than ``0``), the " "``LC_ALL`` locale override environment variable is also not set, and the " "current locale reported for the ``LC_CTYPE`` category is either the default " "``C`` locale, or else the explicitly ASCII-based ``POSIX`` locale, then the " "Python CLI will attempt to configure the following locales for the " "``LC_CTYPE`` category in the order listed before loading the interpreter " "runtime:" msgstr "" "Ist diese Variable *nicht* gesetzt (oder auf einen anderen Wert als ``0``), " "ist außerdem die Umgebungsvariable ``LC_ALL`` zum Überschreiben des " "Gebietsschemas nicht gesetzt, und ist das für die Kategorie ``LC_CTYPE`` " "gemeldete aktuelle Gebietsschema entweder das Standard-Gebietsschema ``C`` " "oder das ausdrücklich ASCII-basierte ``POSIX``, dann versucht die Python-" "Befehlszeile, für die Kategorie ``LC_CTYPE`` die folgenden Gebietsschemata " "in der angegebenen Reihenfolge einzustellen, bevor sie die Laufzeitumgebung " "des Interpreters lädt:" #: ../../using/cmdline.rst:1138 msgid "``C.UTF-8``" msgstr "``C.UTF-8``" #: ../../using/cmdline.rst:1139 msgid "``C.utf8``" msgstr "``C.utf8``" #: ../../using/cmdline.rst:1140 msgid "``UTF-8``" msgstr "``UTF-8``" #: ../../using/cmdline.rst:1142 msgid "" "If setting one of these locale categories succeeds, then the ``LC_CTYPE`` " "environment variable will also be set accordingly in the current process " "environment before the Python runtime is initialized. This ensures that in " "addition to being seen by both the interpreter itself and other locale-aware " "components running in the same process (such as the GNU ``readline`` " "library), the updated setting is also seen in subprocesses (regardless of " "whether or not those processes are running a Python interpreter), as well as " "in operations that query the environment rather than the current C locale " "(such as Python's own :func:`locale.getdefaultlocale`)." msgstr "" "Gelingt es, eine dieser Gebietsschema-Kategorien einzustellen, wird die " "Umgebungsvariable ``LC_CTYPE`` in der aktuellen Prozessumgebung ebenfalls " "entsprechend gesetzt, bevor die Python-Laufzeitumgebung initialisiert wird. " "So wird die geänderte Einstellung nicht nur vom Interpreter selbst und von " "anderen gebietsschemabewussten Komponenten im selben Prozess gesehen (etwa " "der GNU-Bibliothek ``readline``), sondern auch in Unterprozessen (unabhängig " "davon, ob darin ein Python-Interpreter läuft) sowie bei Operationen, die die " "Umgebung anstelle des aktuellen C-Gebietsschemas abfragen (etwa Pythons " "eigenes :func:`locale.getdefaultlocale`)." #: ../../using/cmdline.rst:1152 msgid "" "Configuring one of these locales (either explicitly or via the above " "implicit locale coercion) automatically enables the ``surrogateescape`` :ref:" "`error handler ` for :data:`sys.stdin` and :data:`sys." "stdout` (:data:`sys.stderr` continues to use ``backslashreplace`` as it does " "in any other locale). This stream handling behavior can be overridden using :" "envvar:`PYTHONIOENCODING` as usual." msgstr "" "Das Einstellen eines dieser Gebietsschemata (ausdrücklich oder über das oben " "beschriebene stillschweigende Umlenken) schaltet automatisch die :ref:" "`Fehlerbehandlung ` ``surrogateescape`` für :data:`sys." "stdin` und :data:`sys.stdout` ein (:data:`sys.stderr` verwendet weiterhin " "``backslashreplace`` wie in jedem anderen Gebietsschema). Dieses Verhalten " "der Ströme lässt sich wie üblich über :envvar:`PYTHONIOENCODING` " "überschreiben." #: ../../using/cmdline.rst:1159 msgid "" "For debugging purposes, setting ``PYTHONCOERCECLOCALE=warn`` will cause " "Python to emit warning messages on ``stderr`` if either the locale coercion " "activates, or else if a locale that *would* have triggered coercion is still " "active when the Python runtime is initialized." msgstr "" "Zur Fehlersuche sorgt ``PYTHONCOERCECLOCALE=warn`` dafür, dass Python " "Warnmeldungen auf ``stderr`` ausgibt, wenn das Umlenken des Gebietsschemas " "greift oder wenn beim Initialisieren der Python-Laufzeitumgebung noch ein " "Gebietsschema aktiv ist, das das Umlenken ausgelöst *hätte*." #: ../../using/cmdline.rst:1164 msgid "" "Also note that even when locale coercion is disabled, or when it fails to " "find a suitable target locale, :envvar:`PYTHONUTF8` will still activate by " "default in legacy ASCII-based locales. Both features must be disabled in " "order to force the interpreter to use ``ASCII`` instead of ``UTF-8`` for " "system interfaces." msgstr "" "Beachte außerdem, dass :envvar:`PYTHONUTF8` auch dann standardmäßig in alten " "ASCII-basierten Gebietsschemata greift, wenn das Umlenken des Gebietsschemas " "abgeschaltet ist oder kein geeignetes Ziel-Gebietsschema findet. Beide " "Funktionen müssen abgeschaltet werden, damit der Interpreter für " "Systemschnittstellen ``ASCII`` anstelle von ``UTF-8`` verwendet." #: ../../using/cmdline.rst:1172 msgid "See :pep:`538` for more details." msgstr "Mehr dazu unter :pep:`538`." #: ../../using/cmdline.rst:1178 msgid "" "If this environment variable is set to a non-empty string, enable :ref:" "`Python Development Mode `, introducing additional runtime checks " "that are too expensive to be enabled by default. This is equivalent to " "setting the :option:`-X` ``dev`` option." msgstr "" "Ist diese Umgebungsvariable auf eine nicht leere Zeichenkette gesetzt, wird " "der :ref:`Python-Entwicklungsmodus ` eingeschaltet, der zusätzliche " "Prüfungen zur Laufzeit einführt, die zu aufwendig sind, um standardmäßig " "eingeschaltet zu sein. Das entspricht dem Setzen der Option :option:`-X` " "``dev``." #: ../../using/cmdline.rst:1187 msgid "If set to ``1``, enable the :ref:`Python UTF-8 Mode `." msgstr "" "Auf ``1`` gesetzt, schaltet sie den :ref:`Python-UTF-8-Modus ` " "ein." #: ../../using/cmdline.rst:1189 msgid "If set to ``0``, disable the :ref:`Python UTF-8 Mode `." msgstr "" "Auf ``0`` gesetzt, schaltet sie den :ref:`Python-UTF-8-Modus ` ab." #: ../../using/cmdline.rst:1191 msgid "" "Setting any other non-empty string causes an error during interpreter " "initialisation." msgstr "" "Jede andere nicht leere Zeichenkette führt beim Initialisieren des " "Interpreters zu einem Fehler." #: ../../using/cmdline.rst:1198 msgid "" "If this environment variable is set to a non-empty string, issue a :class:" "`EncodingWarning` when the locale-specific default encoding is used." msgstr "" "Ist diese Umgebungsvariable auf eine nicht leere Zeichenkette gesetzt, wird " "eine :class:`EncodingWarning` ausgelöst, wenn die vom Gebietsschema " "abhängige Standardkodierung verwendet wird." #: ../../using/cmdline.rst:1201 msgid "See :ref:`io-encoding-warning` for details." msgstr "Einzelheiten unter :ref:`io-encoding-warning`." #: ../../using/cmdline.rst:1207 msgid "" "If this variable is set, it disables the inclusion of the tables mapping " "extra location information (end line, start column offset and end column " "offset) to every instruction in code objects. This is useful when smaller " "code objects and pyc files are desired as well as suppressing the extra " "visual location indicators when the interpreter displays tracebacks." msgstr "" "Ist diese Variable gesetzt, schaltet sie das Mitführen der Tabellen ab, die " "jedem Befehl in Codeobjekten zusätzliche Ortsangaben zuordnen (Endzeile, " "Startspalte und Endspalte). Das ist nützlich, wenn kleinere Codeobjekte und " "pyc-Dateien gewünscht sind und wenn die zusätzlichen sichtbaren " "Ortsmarkierungen unterdrückt werden sollen, mit denen der Interpreter " "Tracebacks anzeigt." #: ../../using/cmdline.rst:1217 msgid "" "If this variable is set to a nonzero value, it enables support for the Linux " "``perf`` profiler so Python calls can be detected by it." msgstr "" "Ist diese Variable auf einen Wert ungleich null gesetzt, schaltet sie die " "Unterstützung für den Linux-Profiler ``perf`` ein, damit dieser Python-" "Aufrufe erkennen kann." #: ../../using/cmdline.rst:1220 ../../using/cmdline.rst:1233 msgid "If set to ``0``, disable Linux ``perf`` profiler support." msgstr "" "Auf ``0`` gesetzt, schaltet sie die Unterstützung für den Linux-Profiler " "``perf`` ab." #: ../../using/cmdline.rst:1222 msgid "" "See also the :option:`-X perf <-X>` command-line option and :ref:" "`perf_profiling`." msgstr "" "Siehe auch die Befehlszeilenoption :option:`-X perf <-X>` und :ref:" "`perf_profiling`." #: ../../using/cmdline.rst:1229 msgid "" "If this variable is set to a nonzero value, it enables support for the Linux " "``perf`` profiler so Python calls can be detected by it using DWARF " "information." msgstr "" "Ist diese Variable auf einen Wert ungleich null gesetzt, schaltet sie die " "Unterstützung für den Linux-Profiler ``perf`` ein, damit dieser Python-" "Aufrufe anhand von DWARF-Informationen erkennen kann." #: ../../using/cmdline.rst:1235 msgid "" "See also the :option:`-X perf_jit <-X>` command-line option and :ref:" "`perf_profiling`." msgstr "" "Siehe auch die Befehlszeilenoption :option:`-X perf_jit <-X>` und :ref:" "`perf_profiling`." #: ../../using/cmdline.rst:1242 msgid "" "If this variable is set to a non-empty string, it disables the remote " "debugging feature described in :pep:`768`. This includes both the " "functionality to schedule code for execution in another process and the " "functionality to receive code for execution in the current process." msgstr "" "Ist diese Variable auf eine nicht leere Zeichenkette gesetzt, schaltet sie " "die in :pep:`768` beschriebene Funktion zum Fern-Debuggen ab. Das betrifft " "sowohl die Möglichkeit, Code zur Ausführung in einem anderen Prozess " "einzuplanen, als auch die Möglichkeit, Code zur Ausführung im aktuellen " "Prozess zu empfangen." #: ../../using/cmdline.rst:1247 #, fuzzy msgid "See also the :option:`-X disable-remote-debug` command-line option." msgstr "Siehe auch die Befehlszeilenoption :option:`-X disable_remote_debug`." #: ../../using/cmdline.rst:1253 msgid "" "If this variable is set to a positive integer, it overrides the return " "values of :func:`os.cpu_count` and :func:`os.process_cpu_count`." msgstr "" "Ist diese Variable auf eine positive Ganzzahl gesetzt, überschreibt sie die " "Rückgabewerte von :func:`os.cpu_count` und :func:`os.process_cpu_count`." #: ../../using/cmdline.rst:1256 msgid "See also the :option:`-X cpu_count <-X>` command-line option." msgstr "Siehe auch die Befehlszeilenoption :option:`-X cpu_count <-X>`." #: ../../using/cmdline.rst:1262 msgid "" "If this variable is set to ``on`` or ``off``, it determines whether or not " "frozen modules are ignored by the import machinery. A value of ``on`` means " "they get imported and ``off`` means they are ignored. The default is ``on`` " "for non-debug builds (the normal case) and ``off`` for debug builds. Note " "that the :mod:`!importlib_bootstrap` and :mod:`!" "importlib_bootstrap_external` frozen modules are always used, even if this " "flag is set to ``off``." msgstr "" "Ist diese Variable auf ``on`` oder ``off`` gesetzt, legt sie fest, ob " "eingefrorene Module vom Importmechanismus ignoriert werden. Der Wert ``on`` " "bedeutet, dass sie importiert werden, ``off``, dass sie ignoriert werden. " "Standard ist ``on`` bei Builds ohne Debug-Unterstützung (der Normalfall) und " "``off`` bei Debug-Builds. Beachte, dass die eingefrorenen Module :mod:`!" "importlib_bootstrap` und :mod:`!importlib_bootstrap_external` immer " "verwendet werden, auch wenn dieser Schalter auf ``off`` steht." #: ../../using/cmdline.rst:1270 msgid "See also the :option:`-X frozen_modules <-X>` command-line option." msgstr "Siehe auch die Befehlszeilenoption :option:`-X frozen_modules <-X>`." #: ../../using/cmdline.rst:1276 msgid "" "If this variable is set to ``1``, the interpreter will colorize various " "kinds of output. Setting it to ``0`` deactivates this behavior. See also :" "ref:`using-on-controlling-color`." msgstr "" "Ist diese Variable auf ``1`` gesetzt, färbt der Interpreter verschiedene " "Arten von Ausgaben ein. Auf ``0`` gesetzt, schaltet sie dieses Verhalten ab. " "Siehe auch :ref:`using-on-controlling-color`." #: ../../using/cmdline.rst:1284 msgid "" "If this variable is set to any value, the interpreter will not attempt to " "load the Python-based :term:`REPL` that requires :mod:`readline`, and will " "instead use the traditional parser-based :term:`REPL`." msgstr "" "Ist diese Variable auf einen beliebigen Wert gesetzt, versucht der " "Interpreter nicht, die Python-basierte :term:`REPL` zu laden, die :mod:" "`readline` benötigt, und verwendet stattdessen die herkömmliche " "parserbasierte :term:`REPL`." #: ../../using/cmdline.rst:1292 msgid "" "This environment variable can be used to set the location of a ``." "python_history`` file (by default, it is ``.python_history`` in the user's " "home directory)." msgstr "" "Mit dieser Umgebungsvariable lässt sich der Ort einer Datei ``." "python_history`` festlegen (standardmäßig ist es ``.python_history`` im " "Benutzerverzeichnis)." #: ../../using/cmdline.rst:1300 msgid "" "If this variable is set to ``1``, the global interpreter lock (GIL) will be " "forced on. Setting it to ``0`` forces the GIL off (needs Python configured " "with the :option:`--disable-gil` build option)." msgstr "" "Ist diese Variable auf ``1`` gesetzt, wird der Global Interpreter Lock (GIL) " "erzwungen eingeschaltet. Auf ``0`` gesetzt, erzwingt sie, dass der GIL " "abgeschaltet ist (erfordert ein Python, das mit der Build-Option :option:`--" "disable-gil` konfiguriert ist)." #: ../../using/cmdline.rst:1304 msgid "" "See also the :option:`-X gil <-X>` command-line option, which takes " "precedence over this variable, and :ref:`whatsnew313-free-threaded-cpython`." msgstr "" "Siehe auch die Befehlszeilenoption :option:`-X gil <-X>`, die Vorrang vor " "dieser Variable hat, sowie :ref:`whatsnew313-free-threaded-cpython`." #: ../../using/cmdline.rst:1311 msgid "" "If this variable is set to ``1`` then :class:`~threading.Thread` will, by " "default, use a copy of context of the caller of ``Thread.start()`` when " "starting. Otherwise, new threads will start with an empty context. If " "unset, this variable defaults to ``1`` on free-threaded builds and to ``0`` " "otherwise. See also :option:`-X thread_inherit_context<-X>`." msgstr "" "Ist diese Variable auf ``1`` gesetzt, verwendet :class:`~threading.Thread` " "beim Start standardmäßig eine Kopie des Kontexts des Aufrufers von ``Thread." "start()``. Andernfalls starten neue Threads mit einem leeren Kontext. Ist " "sie nicht gesetzt, ist der Standardwert dieser Variable ``1`` bei Free-" "Threaded-Builds und sonst ``0``. Siehe auch :option:`-X " "thread_inherit_context<-X>`." #: ../../using/cmdline.rst:1321 msgid "" "If set to ``1`` then the :class:`warnings.catch_warnings` context manager " "will use a :class:`~contextvars.ContextVar` to store warnings filter state. " "If unset, this variable defaults to ``1`` on free-threaded builds and to " "``0`` otherwise. See :option:`-X context_aware_warnings<-X>`." msgstr "" "Auf ``1`` gesetzt, verwendet der Kontextmanager :class:`warnings." "catch_warnings` eine :class:`~contextvars.ContextVar`, um den Zustand des " "Warnfilters zu speichern. Ist sie nicht gesetzt, ist der Standardwert dieser " "Variable ``1`` bei Free-Threaded-Builds und sonst ``0``. Siehe :option:`-X " "context_aware_warnings<-X>`." #: ../../using/cmdline.rst:1331 msgid "" "On builds where experimental just-in-time compilation is available, this " "variable can force the JIT to be disabled (``0``) or enabled (``1``) at " "interpreter startup." msgstr "" "Bei Builds, in denen die experimentelle Just-in-Time-Kompilierung verfügbar " "ist, kann diese Variable den JIT beim Start des Interpreters erzwungen " "abschalten (``0``) oder einschalten (``1``)." #: ../../using/cmdline.rst:1339 msgid "" "If set to ``1`` enables thread-local bytecode. If set to ``0`` thread-local " "bytecode and the specializing interpreter are disabled. Only applies to " "builds configured with :option:`--disable-gil`." msgstr "" "Auf ``1`` gesetzt, schaltet sie threadlokalen Bytecode ein. Auf ``0`` " "gesetzt, sind threadlokaler Bytecode und der spezialisierende Interpreter " "abgeschaltet. Gilt nur für Builds, die mit :option:`--disable-gil` " "konfiguriert sind." #: ../../using/cmdline.rst:1343 msgid "See also the :option:`-X tlbc <-X>` command-line option." msgstr "Siehe auch die Befehlszeilenoption :option:`-X tlbc <-X>`." #: ../../using/cmdline.rst:1348 msgid "Debug-mode variables" msgstr "Variablen für den Debug-Modus" #: ../../using/cmdline.rst:1352 msgid "" "If set, Python will dump objects and reference counts still alive after " "shutting down the interpreter." msgstr "" "Ist sie gesetzt, gibt Python Objekte und Referenzzähler aus, die nach dem " "Herunterfahren des Interpreters noch leben." #: ../../using/cmdline.rst:1355 ../../using/cmdline.rst:1363 msgid "" "Needs Python configured with the :option:`--with-trace-refs` build option." msgstr "" "Erfordert ein Python, das mit der Build-Option :option:`--with-trace-refs` " "konfiguriert ist." #: ../../using/cmdline.rst:1359 msgid "" "If set, Python will dump objects and reference counts still alive after " "shutting down the interpreter into a file under the path given as the value " "to this environment variable." msgstr "" "Ist sie gesetzt, gibt Python Objekte und Referenzzähler, die nach dem " "Herunterfahren des Interpreters noch leben, in eine Datei unter dem Pfad " "aus, der als Wert dieser Umgebungsvariable angegeben ist." #: ../../using/cmdline.rst:1369 msgid "" "If this variable is set to a module, that module will be imported early in " "the interpreter lifecycle, before the :mod:`site` module is executed, and " "before the :mod:`__main__` module is created. Therefore, the imported module " "is not treated as :mod:`__main__`." msgstr "" "Ist diese Variable auf ein Modul gesetzt, wird dieses Modul früh im " "Lebenszyklus des Interpreters importiert, bevor das Modul :mod:`site` " "ausgeführt wird und bevor das Modul :mod:`__main__` erzeugt wird. Das " "importierte Modul wird deshalb nicht als :mod:`__main__` behandelt." #: ../../using/cmdline.rst:1374 msgid "This can be used to execute code early during Python initialization." msgstr "" "Damit lässt sich früh während der Python-Initialisierung Code ausführen." #: ../../using/cmdline.rst:1376 msgid "" "To import a submodule, use ``package.module`` as the value, like in an " "import statement." msgstr "" "Um ein Untermodul zu importieren, verwende ``package.module`` als Wert, wie " "in einer import-Anweisung." #: ../../using/cmdline.rst:1379 msgid "" "See also the :option:`-X presite <-X>` command-line option, which takes " "precedence over this variable." msgstr "" "Siehe auch die Befehlszeilenoption :option:`-X presite <-X>`, die Vorrang " "vor dieser Variable hat." #: ../../using/cmdline.rst:1382 msgid "Needs Python configured with the :option:`--with-pydebug` build option." msgstr "" "Erfordert ein Python, das mit der Build-Option :option:`--with-pydebug` " "konfiguriert ist."