44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Rafael Fontenelle <[email protected] >, 2024 7+ # Rafael Fontenelle <[email protected] >, 2025 88#
99#, fuzzy
1010msgid ""
@@ -13,7 +13,7 @@ msgstr ""
1313"Report-Msgid-Bugs-To : \n "
1414"POT-Creation-Date : 2025-01-24 14:52+0000\n "
1515"PO-Revision-Date : 2024-05-11 00:32+0000\n "
16- "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024 \n "
16+ "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2025 \n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
1818"MIME-Version : 1.0\n "
1919"Content-Type : text/plain; charset=UTF-8\n "
@@ -259,6 +259,9 @@ msgid ""
259259">>> for x in range(5):\n"
260260"... squares.append(lambda: x**2)"
261261msgstr ""
262+ ">>> squares = []\n"
263+ ">>> for x in range(5):\n"
264+ "... squares.append(lambda: x**2)"
262265
263266msgid ""
264267"This gives you a list that contains 5 lambdas that calculate ``x**2``. You "
@@ -273,6 +276,10 @@ msgid ""
273276">>> squares[4]()\n"
274277"16"
275278msgstr ""
279+ ">>> squares[2]()\n"
280+ "16\n"
281+ ">>> squares[4]()\n"
282+ "16"
276283
277284msgid ""
278285"This happens because ``x`` is not local to the lambdas, but is defined in "
@@ -287,6 +294,9 @@ msgid ""
287294">>> squares[2]()\n"
288295"64"
289296msgstr ""
297+ ">>> x = 8\n"
298+ ">>> squares[2]()\n"
299+ "64"
290300
291301msgid ""
292302"In order to avoid this, you need to save the values in variables local to "
@@ -298,6 +308,9 @@ msgid ""
298308">>> for x in range(5):\n"
299309"... squares.append(lambda n=x: n**2)"
300310msgstr ""
311+ ">>> squares = []\n"
312+ ">>> for x in range(5):\n"
313+ "... squares.append(lambda n=x: n**2)"
301314
302315msgid ""
303316"Here, ``n=x`` creates a new variable ``n`` local to the lambda and computed "
@@ -313,6 +326,10 @@ msgid ""
313326">>> squares[4]()\n"
314327"16"
315328msgstr ""
329+ ">>> squares[2]()\n"
330+ "4\n"
331+ ">>> squares[4]()\n"
332+ "16"
316333
317334msgid ""
318335"Note that this behaviour is not peculiar to lambdas, but applies to regular "
@@ -922,6 +939,8 @@ msgid ""
922939">>> \" a\" in \" b\" , \" a\" \n"
923940"(False, 'a')"
924941msgstr ""
942+ ">>> \" a\" in \" b\" , \" a\" \n"
943+ "(False, 'a')"
925944
926945msgid ""
927946"Since the comma is not an operator, but a separator between expressions the "
@@ -1059,6 +1078,9 @@ msgid ""
10591078">>> a\n"
10601079"8"
10611080msgstr ""
1081+ ">>> a = 0o10\n"
1082+ ">>> a\n"
1083+ "8"
10621084
10631085msgid ""
10641086"Hexadecimal is just as easy. Simply precede the hexadecimal number with a "
@@ -1115,6 +1137,11 @@ msgid ""
11151137" ^\n"
11161138"SyntaxError: invalid decimal literal"
11171139msgstr ""
1140+ ">>> 1.__class__\n"
1141+ " File \" <stdin>\" , line 1\n"
1142+ " 1.__class__\n"
1143+ " ^\n"
1144+ "SyntaxError: invalid decimal literal"
11181145
11191146msgid ""
11201147"The solution is to separate the literal from the period with either a space "
@@ -1354,6 +1381,8 @@ msgid ""
13541381">>> r'C:\\ this\\ will\\ work' '\\\\ '\n"
13551382"'C:\\\\ this\\\\ will\\\\ work\\\\ '"
13561383msgstr ""
1384+ ">>> r'C:\\ this\\ will\\ work' '\\\\ '\n"
1385+ "'C:\\\\ this\\\\ will\\\\ work\\\\ '"
13571386
13581387msgid ""
13591388"It is also possible to use :func:`os.path.join` to append a backslash on "
@@ -1364,6 +1393,8 @@ msgid ""
13641393">>> os.path.join(r'C:\\ this\\ will\\ work', '')\n"
13651394"'C:\\\\ this\\\\ will\\\\ work\\\\ '"
13661395msgstr ""
1396+ ">>> os.path.join(r'C:\\ this\\ will\\ work', '')\n"
1397+ "'C:\\\\ this\\\\ will\\\\ work\\\\ '"
13671398
13681399msgid ""
13691400"Note that while a backslash will \" escape\" a quote for the purposes of "
@@ -1663,7 +1694,7 @@ msgid "You probably tried to make a multidimensional array like this::"
16631694msgstr ""
16641695
16651696msgid ">>> A = [[None] * 2] * 3"
1666- msgstr ""
1697+ msgstr ">>> A = [[None] * 2] * 3 "
16671698
16681699msgid "This looks correct if you print it:"
16691700msgstr ""
@@ -1672,6 +1703,8 @@ msgid ""
16721703">>> A\n"
16731704"[[None, None], [None, None], [None, None]]"
16741705msgstr ""
1706+ ">>> A\n"
1707+ "[[None, None], [None, None], [None, None]]"
16751708
16761709msgid "But when you assign a value, it shows up in multiple places:"
16771710msgstr ""
@@ -1681,6 +1714,9 @@ msgid ""
16811714">>> A\n"
16821715"[[5, None], [5, None], [5, None]]"
16831716msgstr ""
1717+ ">>> A[0][0] = 5\n"
1718+ ">>> A\n"
1719+ "[[5, None], [5, None], [5, None]]"
16841720
16851721msgid ""
16861722"The reason is that replicating a list with ``*`` doesn't create copies, it "
@@ -1815,6 +1851,8 @@ msgid ""
18151851">>> a_tuple[0]\n"
18161852"['foo', 'item']"
18171853msgstr ""
1854+ ">>> a_tuple[0]\n"
1855+ "['foo', 'item']"
18181856
18191857msgid ""
18201858"To see why this happens, you need to know that (a) if an object implements "
@@ -1831,6 +1869,10 @@ msgid ""
18311869">>> a_list\n"
18321870"[1]"
18331871msgstr ""
1872+ ">>> a_list = []\n"
1873+ ">>> a_list += [1]\n"
1874+ ">>> a_list\n"
1875+ "[1]"
18341876
18351877msgid "This is equivalent to::"
18361878msgstr ""
@@ -1839,6 +1881,8 @@ msgid ""
18391881">>> result = a_list.__iadd__([1])\n"
18401882">>> a_list = result"
18411883msgstr ""
1884+ ">>> result = a_list.__iadd__([1])\n"
1885+ ">>> a_list = result"
18421886
18431887msgid ""
18441888"The object pointed to by a_list has been mutated, and the pointer to the "
@@ -2449,6 +2493,10 @@ msgid ""
24492493">>> a is b\n"
24502494"False"
24512495msgstr ""
2496+ ">>> a = []\n"
2497+ ">>> b = []\n"
2498+ ">>> a is b\n"
2499+ "False"
24522500
24532501msgid ""
24542502"In the standard library code, you will see several common patterns for "
@@ -2704,6 +2752,8 @@ msgid ""
27042752">>> import py_compile\n"
27052753">>> py_compile.compile('foo.py') "
27062754msgstr ""
2755+ ">>> import py_compile\n"
2756+ ">>> py_compile.compile('foo.py') "
27072757
27082758msgid ""
27092759"This will write the ``.pyc`` to a ``__pycache__`` subdirectory in the same "
@@ -2910,6 +2960,10 @@ msgid ""
29102960">>> hex(id(cls.C))\n"
29112961"'0x4198d0'"
29122962msgstr ""
2963+ ">>> hex(id(c.__class__))\n"
2964+ "'0x7352a0'\n"
2965+ ">>> hex(id(cls.C))\n"
2966+ "'0x4198d0'"
29132967
29142968msgid "argument"
29152969msgstr "argument"
0 commit comments