@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.15\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2026-05-27 16:58 +0000\n "
16+ "POT-Creation-Date : 2026-06-02 00:16 +0000\n "
1717"PO-Revision-Date : 2025-09-16 00:02+0000\n "
1818"Last-Translator : Maciej Olko <maciej.olko@gmail.com>, 2026\n "
1919"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -617,6 +617,9 @@ msgid ""
617617"iterable object; trying to unpack a non-iterable object will raise an "
618618"exception::"
619619msgstr ""
620+ "Działa to tylko wtedy, gdy wyrażenie następujące po ``*`` ma wartość "
621+ "iterable; próba rozpakowania obiektu innego niż iterable spowoduje rzucenie "
622+ "wyjątku::"
620623
621624msgid ""
622625">>> x = 1\n"
@@ -626,33 +629,52 @@ msgid ""
626629" [0, *x, 2, 3, 4]\n"
627630"TypeError: Value after * must be an iterable, not int"
628631msgstr ""
632+ ">>> x = 1\n"
633+ ">>> [0, *x, 2, 3, 4]\n"
634+ "Traceback (most recent call last):\n"
635+ " File \" <python-input-1>\" , line 1, in <module>\n"
636+ " [0, *x, 2, 3, 4]\n"
637+ "TypeError: Value after * must be an iterable, not int"
629638
630639msgid ""
631640"Unpacking can also be used in list comprehensions, as a way to build a new "
632641"list representing the concatenation of an arbitrary number of iterables::"
633642msgstr ""
643+ "Rozpakowywanie może być również używane w list comprehensions, jako sposób "
644+ "na zbudowanie nowej listy reprezentującej łączenie dowolnej liczby "
645+ "iterable'i::"
634646
635647msgid ""
636648">>> x = [[1, 2, 3], [4, 5, 6], [], [7], [8, 9]]\n"
637649">>> [*element for element in x]\n"
638650"[1, 2, 3, 4, 5, 6, 7, 8, 9]"
639651msgstr ""
652+ ">>> x = [[1, 2, 3], [4, 5, 6], [], [7], [8, 9]]\n"
653+ ">>> [*element for element in x]\n"
654+ "[1, 2, 3, 4, 5, 6, 7, 8, 9]"
640655
641656msgid ""
642657"Note that the effect is that each element from ``x`` is unpacked. This "
643658"works for arbitrary iterable objects, not just lists::"
644659msgstr ""
660+ "Należy zauważyć, że w efekcie każdy element z ``x`` jest rozpakowywany. "
661+ "Działa to dla dowolnych obiektów iterable, nie tylko list::"
645662
646663msgid ""
647664">>> x = [[1, 2, 3], 'cat', {'spam': 'eggs'}]\n"
648665">>> [*element for element in x]\n"
649666"[1, 2, 3, 'c', 'a', 't', 'spam']"
650667msgstr ""
668+ ">>> x = [[1, 2, 3], 'kot', {'mielonka': 'jajka'}]\n"
669+ ">>> [*element for element in x]\n"
670+ "[1, 2, 3, 'k', 'o', 't', 'mielonka']"
651671
652672msgid ""
653673"But if the objects in ``x`` are not iterable, this expression would again "
654674"raise an exception."
655675msgstr ""
676+ "Ale jeśli obiekty w ``x`` nie są iterowalne, to wyrażenie ponownie rzuciłoby "
677+ "wyjątek."
656678
657679msgid "The :keyword:`!del` statement"
658680msgstr "Instrukcja :keyword:`!del`"
@@ -752,6 +774,28 @@ msgid ""
752774">>> 0, *x, 4\n"
753775"(0, 1, 2, 3, 4)"
754776msgstr ""
777+ ">>> t = 12345, 54321, 'dzień dobry!'\n"
778+ ">>> t[0]\n"
779+ "12345\n"
780+ ">>> t\n"
781+ "(12345, 54321, 'dzień dobry!')\n"
782+ ">>> # krotki mogą być zagnieżdżane:\n"
783+ ">>> u = t, (1, 2, 3, 4, 5)\n"
784+ ">>> u\n"
785+ "((12345, 54321, 'dzień dobry!'), (1, 2, 3, 4, 5))\n"
786+ ">>> # krotki są niemutowalne\n"
787+ ">>> t[0] = 88888\n"
788+ "Traceback (most recent call last):\n"
789+ " File \" <stdin>\" , line 1, in <module>\n"
790+ "TypeError: 'tuple' object does not support item assignment\n"
791+ ">>> # ale mogą zawierać mutowalne obiekty:\n"
792+ ">>> v = ([1, 2, 3], [3, 2, 1])\n"
793+ ">>> v\n"
794+ "([1, 2, 3], [3, 2, 1])\n"
795+ ">>> # obsługują unpacking jak listy:\n"
796+ ">>> x = [1, 2, 3]\n"
797+ ">>> 0, *x, 4\n"
798+ "(0, 1, 2, 3, 4)"
755799
756800msgid ""
757801"As you see, on output tuples are always enclosed in parentheses, so that "
@@ -932,6 +976,9 @@ msgid ""
932976"Similarly to :ref:`list comprehensions <tut-listcomps>`, set comprehensions "
933977"are also supported, including comprehensions with unpacking::"
934978msgstr ""
979+ "Podobnie jak w przypadku :ref:`list comprehensions <tut-listcomps>`, "
980+ "obsługiwane są również set comprehensions, w tym comprehensions z "
981+ "rozpakowywaniem::"
935982
936983msgid ""
937984">>> a = {x for x in 'abracadabra' if x not in 'abc'}\n"
@@ -942,6 +989,13 @@ msgid ""
942989">>> {*fruit for fruit in fruits}\n"
943990"{'blueberry', 'banana', 'avocado', 'apple', 'apricot'}"
944991msgstr ""
992+ ">>> a = {x for x in 'abrakadabra' if x not in 'abc'}\n"
993+ ">>> a\n"
994+ "{'k', 'r', 'd'}\n"
995+ "\n"
996+ ">>> fruits = [{'arbuz', 'ananas', 'agrest'}, {'banan', 'borówka'}]\n"
997+ ">>> {*fruit for fruit in fruits}\n"
998+ "{'borówka', 'agrest, 'ananas', 'arbuz', 'banan'}"
945999
9461000msgid "Dictionaries"
9471001msgstr "Słowniki"
@@ -1105,6 +1159,8 @@ msgid ""
11051159"And dictionary unpacking (via ``**``) can be used to merge multiple "
11061160"dictionaries::"
11071161msgstr ""
1162+ "A rozpakowywanie słownika (przez ``**``) może być użyte do łączenia wielu "
1163+ "słowników::"
11081164
11091165msgid ""
11101166">>> odds = {i: i**2 for i in (1, 3, 5)}\n"
@@ -1116,6 +1172,14 @@ msgid ""
11161172">>> {**i for i in all_values}\n"
11171173"{1: 1, 3: 9, 5: 25, 2: 4, 4: 16, 6: 36, 0: 0}"
11181174msgstr ""
1175+ ">>> odds = {i: i**2 for i in (1, 3, 5)}\n"
1176+ ">>> evens = {i: i**2 for i in (2, 4, 6)}\n"
1177+ ">>> {**odds, **evens}\n"
1178+ "{1: 1, 3: 9, 5: 25, 2: 4, 4: 16, 6: 36}\n"
1179+ "\n"
1180+ ">>> all_values = [odds, evens, {0: 0}]\n"
1181+ ">>> {**i for i in all_values}\n"
1182+ "{1: 1, 3: 9, 5: 25, 2: 4, 4: 16, 6: 36, 0: 0}"
11191183
11201184msgid ""
11211185"When the keys are simple strings, it is sometimes easier to specify pairs "
0 commit comments