66# Translators:
77# python-doc bot, 2025
88#
9- #, fuzzy
109msgid ""
1110msgstr ""
1211"Project-Id-Version : Python 3.14\n "
@@ -662,9 +661,8 @@ msgstr ""
662661"unter :ref:`tut-unpacking-arguments`."
663662
664663#: ../../tutorial/datastructures.rst:332
665- #, fuzzy
666664msgid "Unpacking in Lists and List Comprehensions"
667- msgstr "Verschachtelte Listen-Abstraktion "
665+ msgstr "Entpacken in Listen und List Comprehensions "
668666
669667#: ../../tutorial/datastructures.rst:334
670668msgid ""
@@ -675,20 +673,34 @@ msgid ""
675673"prefixing an expression by a ``*`` will unpack the result of that "
676674"expression, adding each of its elements to the list we're creating::"
677675msgstr ""
676+ "Der Abschnitt :ref:`tut-unpacking-arguments` beschreibt die Verwendung von "
677+ "``*``, um die Elemente eines iterierbaren Objekts zu \" entpacken\" und "
678+ "jedes einzeln als Argument an eine Funktion zu übergeben. Entpacken kann "
679+ "auch in anderen Kontexten verwendet werden, zum Beispiel beim Erstellen "
680+ "von Listen. Wird bei der Angabe von Listenelementen einem Ausdruck ein "
681+ "``*`` vorangestellt, wird das Ergebnis dieses Ausdrucks entpackt, wobei "
682+ "jedes seiner Elemente der Liste hinzugefügt wird, die wir gerade "
683+ "erstellen::"
678684
679685#: ../../tutorial/datastructures.rst:341
680686msgid ""
681687">>> x = [1, 2, 3]\n"
682688">>> [0, *x, 4, 5, 6]\n"
683689"[0, 1, 2, 3, 4, 5, 6]"
684690msgstr ""
691+ ">>> x = [1, 2, 3]\n"
692+ ">>> [0, *x, 4, 5, 6]\n"
693+ "[0, 1, 2, 3, 4, 5, 6]"
685694
686695#: ../../tutorial/datastructures.rst:345
687696msgid ""
688697"This only works if the expression following the ``*`` evaluates to an "
689698"iterable object; trying to unpack a non-iterable object will raise an "
690699"exception::"
691700msgstr ""
701+ "Dies funktioniert nur, wenn der Ausdruck nach dem ``*`` zu einem "
702+ "iterierbaren Objekt ausgewertet wird; der Versuch, ein nicht iterierbares "
703+ "Objekt zu entpacken, löst eine Ausnahme aus::"
692704
693705#: ../../tutorial/datastructures.rst:348
694706msgid ""
@@ -699,38 +711,57 @@ msgid ""
699711" [0, *x, 2, 3, 4]\n"
700712"TypeError: Value after * must be an iterable, not int"
701713msgstr ""
714+ ">>> x = 1\n"
715+ ">>> [0, *x, 2, 3, 4]\n"
716+ "Traceback (most recent call last):\n"
717+ " File \" <python-input-1>\" , line 1, in <module>\n"
718+ " [0, *x, 2, 3, 4]\n"
719+ "TypeError: Value after * must be an iterable, not int"
702720
703721#: ../../tutorial/datastructures.rst:355
704722msgid ""
705723"Unpacking can also be used in list comprehensions, as a way to build a new "
706724"list representing the concatenation of an arbitrary number of iterables::"
707725msgstr ""
726+ "Entpacken kann auch in List Comprehensions verwendet werden, um eine neue "
727+ "Liste zu erstellen, die die Verkettung einer beliebigen Anzahl von "
728+ "iterierbaren Objekten darstellt::"
708729
709730#: ../../tutorial/datastructures.rst:358
710731msgid ""
711732">>> x = [[1, 2, 3], [4, 5, 6], [], [7], [8, 9]]\n"
712733">>> [*element for element in x]\n"
713734"[1, 2, 3, 4, 5, 6, 7, 8, 9]"
714735msgstr ""
736+ ">>> x = [[1, 2, 3], [4, 5, 6], [], [7], [8, 9]]\n"
737+ ">>> [*element for element in x]\n"
738+ "[1, 2, 3, 4, 5, 6, 7, 8, 9]"
715739
716740#: ../../tutorial/datastructures.rst:362
717741msgid ""
718742"Note that the effect is that each element from ``x`` is unpacked. This "
719743"works for arbitrary iterable objects, not just lists::"
720744msgstr ""
745+ "Beachte, dass dabei jedes Element aus ``x`` entpackt wird. Dies "
746+ "funktioniert für beliebige iterierbare Objekte, nicht nur für Listen::"
721747
722748#: ../../tutorial/datastructures.rst:365
723749msgid ""
724750">>> x = [[1, 2, 3], 'cat', {'spam': 'eggs'}]\n"
725751">>> [*element for element in x]\n"
726752"[1, 2, 3, 'c', 'a', 't', 'spam']"
727753msgstr ""
754+ ">>> x = [[1, 2, 3], 'cat', {'spam': 'eggs'}]\n"
755+ ">>> [*element for element in x]\n"
756+ "[1, 2, 3, 'c', 'a', 't', 'spam']"
728757
729758#: ../../tutorial/datastructures.rst:369
730759msgid ""
731760"But if the objects in ``x`` are not iterable, this expression would again "
732761"raise an exception."
733762msgstr ""
763+ "Wenn die Objekte in ``x`` jedoch nicht iterierbar sind, würde dieser "
764+ "Ausdruck erneut eine Ausnahme auslösen."
734765
735766#: ../../tutorial/datastructures.rst:375
736767msgid "The :keyword:`!del` statement"
@@ -822,27 +853,25 @@ msgstr ""
822853"sind, zum Beispiel::"
823854
824855#: ../../tutorial/datastructures.rst:415
825- #, fuzzy
826- msgid ""
827856">>> t = 12345, 54321, 'hello!'\n"
828857">>> t[0]\n"
829858"12345\n"
830859">>> t\n"
831860"(12345, 54321, 'hello!')\n"
832- ">>> # Tuples may be nested :\n"
861+ ">>> # Tupel können verschachtelt werden :\n"
833862">>> u = t, (1, 2, 3, 4, 5)\n"
834863">>> u\n"
835864"((12345, 54321, 'hello!'), (1, 2, 3, 4, 5))\n"
836- ">>> # Tuples are immutable :\n"
865+ ">>> # Tupel sind unveränderlich :\n"
837866">>> t[0] = 88888\n"
838867"Traceback (most recent call last):\n"
839868" File \"<stdin>\", line 1, in <module>\n"
840869"TypeError: 'tuple' object does not support item assignment\n"
841- ">>> # but they can contain mutable objects :\n"
870+ ">>> # aber sie können veränderliche Objekte enthalten :\n"
842871">>> v = ([1, 2, 3], [3, 2, 1])\n"
843872">>> v\n"
844873"([1, 2, 3], [3, 2, 1])\n"
845- ">>> # they support unpacking just like lists :\n"
874+ ">>> # sie unterstützen Entpacken genau wie Listen :\n"
846875">>> x = [1, 2, 3]\n"
847876">>> 0, *x, 4\n"
848877"(0, 1, 2, 3, 4)"
@@ -852,19 +881,23 @@ msgstr ""
852881"12345\n"
853882">>> t\n"
854883"(12345, 54321, 'hello!')\n"
855- ">>> # Tupel können verschachtelt sein :\n"
884+ ">>> # Tupel können verschachtelt werden :\n"
856885">>> u = t, (1, 2, 3, 4, 5)\n"
857886">>> u\n"
858887"((12345, 54321, 'hello!'), (1, 2, 3, 4, 5))\n"
859888">>> # Tupel sind unveränderlich:\n"
860889">>> t[0] = 88888\n"
861- "Traceback (letzter Aufruf zuletzt ):\n"
862- " Datei \" <stdin>\" , Zeile 1, in <module>\n"
863- "TypeError: Das Objekt \" tuple \" unterstützt keine Elementzuweisung \n"
864- ">>> # können jedoch veränderbare Objekte enthalten:\n"
890+ "Traceback (most recent call last ):\n"
891+ " File \" <stdin>\" , line 1, in <module>\n"
892+ "TypeError: 'tuple' object does not support item assignment \n"
893+ ">>> # aber sie können veränderliche Objekte enthalten:\n"
865894">>> v = ([1, 2, 3], [3, 2, 1])\n"
866895">>> v\n"
867- "([1, 2, 3], [3, 2, 1])"
896+ "([1, 2, 3], [3, 2, 1])\n"
897+ ">>> # sie unterstützen Entpacken genau wie Listen:\n"
898+ ">>> x = [1, 2, 3]\n"
899+ ">>> 0, *x, 4\n"
900+ "(0, 1, 2, 3, 4)"
868901
869902#: ../../tutorial/datastructures.rst:438
870903msgid ""
@@ -1067,13 +1100,13 @@ msgstr ""
10671100"{'r', 'd', 'b', 'm', 'z', 'l'}"
10681101
10691102#: ../../tutorial/datastructures.rst:524
1070- #, fuzzy
10711103msgid ""
10721104"Similarly to :ref:`list comprehensions <tut-listcomps>`, set comprehensions "
10731105"are also supported, including comprehensions with unpacking::"
10741106msgstr ""
1075- "Ähnlich wie bei den :ref:`Listenkomprimierungen <tut-listcomps>` werden auch "
1076- "Mengekomprimierungen unterstützt::"
1107+ "Ähnlich wie :ref:`List Comprehensions <tut-listcomps>` werden auch Set "
1108+ "Comprehensions unterstützt, einschließlich Comprehensions mit "
1109+ "Entpacken::"
10771110
10781111#: ../../tutorial/datastructures.rst:527
10791112msgid ""
@@ -1085,6 +1118,13 @@ msgid ""
10851118">>> {*fruit for fruit in fruits}\n"
10861119"{'blueberry', 'banana', 'avocado', 'apple', 'apricot'}"
10871120msgstr ""
1121+ ">>> a = {x for x in 'abracadabra' if x not in 'abc'}\n"
1122+ ">>> a\n"
1123+ "{'r', 'd'}\n"
1124+ "\n"
1125+ ">>> fruits = [{'apple', 'avocado', 'apricot'}, {'banana', 'blueberry'}]\n"
1126+ ">>> {*fruit for fruit in fruits}\n"
1127+ "{'blueberry', 'banana', 'avocado', 'apple', 'apricot'}"
10881128
10891129#: ../../tutorial/datastructures.rst:539
10901130msgid "Dictionaries"
@@ -1268,6 +1308,8 @@ msgid ""
12681308"And dictionary unpacking (via ``**``) can be used to merge multiple "
12691309"dictionaries::"
12701310msgstr ""
1311+ "Und Dictionary-Entpacken (mittels ``**``) kann verwendet werden, um "
1312+ "mehrere Dictionaries zusammenzuführen::"
12711313
12721314#: ../../tutorial/datastructures.rst:615
12731315msgid ""
@@ -1280,6 +1322,14 @@ msgid ""
12801322">>> {**i for i in all_values}\n"
12811323"{1: 1, 3: 9, 5: 25, 2: 4, 4: 16, 6: 36, 0: 0}"
12821324msgstr ""
1325+ ">>> odds = {i: i**2 for i in (1, 3, 5)}\n"
1326+ ">>> evens = {i: i**2 for i in (2, 4, 6)}\n"
1327+ ">>> {**odds, **evens}\n"
1328+ "{1: 1, 3: 9, 5: 25, 2: 4, 4: 16, 6: 36}\n"
1329+ "\n"
1330+ ">>> all_values = [odds, evens, {0: 0}]\n"
1331+ ">>> {**i for i in all_values}\n"
1332+ "{1: 1, 3: 9, 5: 25, 2: 4, 4: 16, 6: 36, 0: 0}"
12831333
12841334#: ../../tutorial/datastructures.rst:624
12851335msgid ""
0 commit comments