Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 49 additions & 34 deletions builtins/functions.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-16 03:06+0000\n"
"POT-Creation-Date: 2026-11-30 03:06+0000\n"
"PO-Revision-Date: 2026-11-01 16:00+0100\n"
"Last-Translator: Swen Bachmann\n"
"Language-Team: German (https://github.com/python/python-docs-de)\n"
Expand Down Expand Up @@ -4663,26 +4663,21 @@ msgstr ""

#: ../../builtins/functions.rst:2349
msgid ""
"This function is invoked by the :keyword:`import` statement. It can be "
"replaced (by importing the :mod:`builtins` module and assigning to "
"``builtins.__import__``) in order to change semantics of the :keyword:`!"
"import` statement, but doing so is **strongly** discouraged as it is usually "
"simpler to use import hooks (see :pep:`302`) to attain the same goals and "
"does not cause issues with code which assumes the default import "
"implementation is in use. Direct use of :func:`__import__` is also "
"discouraged in favor of :func:`importlib.import_module`."
msgstr ""
"Diese Funktion wird durch die :keyword:`import`-Anweisung aufgerufen. Sie "
"kann ersetzt werden (durch Importieren des Moduls :mod:`builtins` und "
"Zuweisung an ``builtins.__import__``), um die Semantik der :keyword:`!"
"import`-Anweisung zu ändern. Davon wird jedoch **dringend** abgeraten. Es "
"ist meist einfacher, Import-Hooks (siehe :pep:`302`) zu verwenden, um "
"dieselben Ziele zu erreichen, ohne Probleme bei Code zu verursachen, der von "
"der Standard-Importimplementierung ausgeht. Auch von der direkten Verwendung "
"von :func:`__import__` wird zugunsten von :func:`importlib.import_module` "
"abgeraten."

#: ../../builtins/functions.rst:2358
"Eager :keyword:`import` statements call this function. For :ref:`lazy "
"imports <lazy-imports>`, Python calls this function at resolution."
msgstr ""

#: ../../builtins/functions.rst:2353
msgid ""
"You can replace :func:`__import__` through an assignment to "
"``builtins.__import__``. :ref:`Import hooks <import-hooks>` usually provide "
"a simpler way to customize imports. A replacement can cause problems for "
"code that expects the default import implementation. Do not "
"replace :func:`__import__` unless import hooks cannot supply the required "
"behavior. To import a module by name, use :func:`importlib.import_module`."
msgstr ""

#: ../../builtins/functions.rst:2361
msgid ""
"The function imports the module *name*, potentially using the given "
"*globals* and *locals* to determine how to interpret the name in a package "
Expand All @@ -4700,7 +4695,7 @@ msgstr ""
"lediglich dazu, den Paketkontext der :keyword:`import`-Anweisung zu "
"bestimmen."

#: ../../builtins/functions.rst:2365
#: ../../builtins/functions.rst:2368
msgid ""
"*level* specifies whether to use absolute or relative imports. ``0`` (the "
"default) means only perform absolute imports. For relative imports, ``1`` "
Expand All @@ -4713,7 +4708,7 @@ msgstr ""
"dessen übergeordnetes Paket und so weiter (Einzelheiten stehen "
"in :pep:`328`)."

#: ../../builtins/functions.rst:2370
#: ../../builtins/functions.rst:2373
msgid ""
"When the *name* variable is of the form ``package.module``, normally, the "
"top-level package (the name up till the first dot) is returned, *not* the "
Expand All @@ -4726,27 +4721,27 @@ msgstr ""
"*fromlist*-Argument angegeben, so wird das durch *name* bezeichnete Modul "
"zurückgegeben."

#: ../../builtins/functions.rst:2375
#: ../../builtins/functions.rst:2378
msgid ""
"For example, the statement ``import spam`` results in bytecode resembling "
"the following code::"
msgstr ""
"Die Anweisung ``import spam`` führt beispielsweise zu Bytecode, der dem "
"folgenden Code ähnelt::"

#: ../../builtins/functions.rst:2378
#: ../../builtins/functions.rst:2381
msgid "spam = __import__('spam', globals(), locals(), [], 0)"
msgstr "spam = __import__('spam', globals(), locals(), [], 0)"

#: ../../builtins/functions.rst:2380
#: ../../builtins/functions.rst:2383
msgid "The statement ``import spam.ham`` results in this call::"
msgstr "Die Anweisung ``import spam.ham`` führt zu diesem Aufruf::"

#: ../../builtins/functions.rst:2382
#: ../../builtins/functions.rst:2385
msgid "spam = __import__('spam.ham', globals(), locals(), [], 0)"
msgstr "spam = __import__('spam.ham', globals(), locals(), [], 0)"

#: ../../builtins/functions.rst:2384
#: ../../builtins/functions.rst:2387
msgid ""
"Note how :func:`__import__` returns the toplevel module here because this is "
"the object that is bound to a name by the :keyword:`import` statement."
Expand All @@ -4755,15 +4750,15 @@ msgstr ""
"zurückgibt, da dies das Objekt ist, das durch die :keyword:`import`-"
"Anweisung an einen Namen gebunden wird."

#: ../../builtins/functions.rst:2387
#: ../../builtins/functions.rst:2390
msgid ""
"On the other hand, the statement ``from spam.ham import eggs, sausage as "
"saus`` results in ::"
msgstr ""
"Andererseits führt die Anweisung ``from spam.ham import eggs, sausage as "
"saus`` zu ::"

#: ../../builtins/functions.rst:2390
#: ../../builtins/functions.rst:2393
msgid ""
"_temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0)\n"
"eggs = _temp.eggs\n"
Expand All @@ -4773,7 +4768,7 @@ msgstr ""
"eggs = _temp.eggs\n"
"saus = _temp.sausage"

#: ../../builtins/functions.rst:2394
#: ../../builtins/functions.rst:2397
msgid ""
"Here, the ``spam.ham`` module is returned from :func:`__import__`. From "
"this object, the names to import are retrieved and assigned to their "
Expand All @@ -4783,23 +4778,23 @@ msgstr ""
"diesem Objekt werden die zu importierenden Namen abgerufen und den "
"entsprechenden Namen zugewiesen."

#: ../../builtins/functions.rst:2398
#: ../../builtins/functions.rst:2401
msgid ""
"If you simply want to import a module (potentially within a package) by "
"name, use :func:`importlib.import_module`."
msgstr ""
"Wenn du ein Modul (möglicherweise innerhalb eines Pakets) einfach anhand "
"seines Namens importieren möchten, verwende :func:`importlib.import_module`."

#: ../../builtins/functions.rst:2401
#: ../../builtins/functions.rst:2404
msgid ""
"Negative values for *level* are no longer supported (which also changes the "
"default value to 0)."
msgstr ""
"Negative Werte für *level* werden nicht mehr unterstützt (wodurch sich auch "
"der Standardwert auf 0 ändert)."

#: ../../builtins/functions.rst:2405
#: ../../builtins/functions.rst:2408
msgid ""
"When the command line options :option:`-E` or :option:`-I` are being used, "
"the environment variable :envvar:`PYTHONCASEOK` is now ignored."
Expand Down Expand Up @@ -4915,6 +4910,26 @@ msgstr "Import"
msgid "builtins"
msgstr "Integrierte Funktionen"

#~ msgid ""
#~ "This function is invoked by the :keyword:`import` statement. It can be "
#~ "replaced (by importing the :mod:`builtins` module and assigning to "
#~ "``builtins.__import__``) in order to change semantics of the :keyword:`!"
#~ "import` statement, but doing so is **strongly** discouraged as it is "
#~ "usually simpler to use import hooks (see :pep:`302`) to attain the same "
#~ "goals and does not cause issues with code which assumes the default "
#~ "import implementation is in use. Direct use of :func:`__import__` is "
#~ "also discouraged in favor of :func:`importlib.import_module`."
#~ msgstr ""
#~ "Diese Funktion wird durch die :keyword:`import`-Anweisung aufgerufen. Sie "
#~ "kann ersetzt werden (durch Importieren des Moduls :mod:`builtins` und "
#~ "Zuweisung an ``builtins.__import__``), um die Semantik der :keyword:`!"
#~ "import`-Anweisung zu ändern. Davon wird jedoch **dringend** abgeraten. Es "
#~ "ist meist einfacher, Import-Hooks (siehe :pep:`302`) zu verwenden, um "
#~ "dieselben Ziele zu erreichen, ohne Probleme bei Code zu verursachen, der "
#~ "von der Standard-Importimplementierung ausgeht. Auch von der direkten "
#~ "Verwendung von :func:`__import__` wird zugunsten "
#~ "von :func:`importlib.import_module` abgeraten."

#~ msgid "Footnotes"
#~ msgstr "Fußnoten"

Expand Down
Loading