4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Rafael Fontenelle <rffontenelle@gmail.com>, 2024
7
+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8
8
#
9
9
#, fuzzy
10
10
msgid ""
@@ -13,7 +13,7 @@ msgstr ""
13
13
"Report-Msgid-Bugs-To : \n "
14
14
"POT-Creation-Date : 2025-01-24 14:52+0000\n "
15
15
"PO-Revision-Date : 2024-05-11 00:32+0000\n "
16
- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024 \n "
16
+ "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2025 \n "
17
17
"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
18
18
"MIME-Version : 1.0\n "
19
19
"Content-Type : text/plain; charset=UTF-8\n "
@@ -259,6 +259,9 @@ msgid ""
259
259
">>> for x in range(5):\n"
260
260
"... squares.append(lambda: x**2)"
261
261
msgstr ""
262
+ ">>> squares = []\n"
263
+ ">>> for x in range(5):\n"
264
+ "... squares.append(lambda: x**2)"
262
265
263
266
msgid ""
264
267
"This gives you a list that contains 5 lambdas that calculate ``x**2``. You "
@@ -273,6 +276,10 @@ msgid ""
273
276
">>> squares[4]()\n"
274
277
"16"
275
278
msgstr ""
279
+ ">>> squares[2]()\n"
280
+ "16\n"
281
+ ">>> squares[4]()\n"
282
+ "16"
276
283
277
284
msgid ""
278
285
"This happens because ``x`` is not local to the lambdas, but is defined in "
@@ -287,6 +294,9 @@ msgid ""
287
294
">>> squares[2]()\n"
288
295
"64"
289
296
msgstr ""
297
+ ">>> x = 8\n"
298
+ ">>> squares[2]()\n"
299
+ "64"
290
300
291
301
msgid ""
292
302
"In order to avoid this, you need to save the values in variables local to "
@@ -298,6 +308,9 @@ msgid ""
298
308
">>> for x in range(5):\n"
299
309
"... squares.append(lambda n=x: n**2)"
300
310
msgstr ""
311
+ ">>> squares = []\n"
312
+ ">>> for x in range(5):\n"
313
+ "... squares.append(lambda n=x: n**2)"
301
314
302
315
msgid ""
303
316
"Here, ``n=x`` creates a new variable ``n`` local to the lambda and computed "
@@ -313,6 +326,10 @@ msgid ""
313
326
">>> squares[4]()\n"
314
327
"16"
315
328
msgstr ""
329
+ ">>> squares[2]()\n"
330
+ "4\n"
331
+ ">>> squares[4]()\n"
332
+ "16"
316
333
317
334
msgid ""
318
335
"Note that this behaviour is not peculiar to lambdas, but applies to regular "
@@ -922,6 +939,8 @@ msgid ""
922
939
">>> \" a\" in \" b\" , \" a\" \n"
923
940
"(False, 'a')"
924
941
msgstr ""
942
+ ">>> \" a\" in \" b\" , \" a\" \n"
943
+ "(False, 'a')"
925
944
926
945
msgid ""
927
946
"Since the comma is not an operator, but a separator between expressions the "
@@ -1059,6 +1078,9 @@ msgid ""
1059
1078
">>> a\n"
1060
1079
"8"
1061
1080
msgstr ""
1081
+ ">>> a = 0o10\n"
1082
+ ">>> a\n"
1083
+ "8"
1062
1084
1063
1085
msgid ""
1064
1086
"Hexadecimal is just as easy. Simply precede the hexadecimal number with a "
@@ -1115,6 +1137,11 @@ msgid ""
1115
1137
" ^\n"
1116
1138
"SyntaxError: invalid decimal literal"
1117
1139
msgstr ""
1140
+ ">>> 1.__class__\n"
1141
+ " File \" <stdin>\" , line 1\n"
1142
+ " 1.__class__\n"
1143
+ " ^\n"
1144
+ "SyntaxError: invalid decimal literal"
1118
1145
1119
1146
msgid ""
1120
1147
"The solution is to separate the literal from the period with either a space "
@@ -1354,6 +1381,8 @@ msgid ""
1354
1381
">>> r'C:\\ this\\ will\\ work' '\\\\ '\n"
1355
1382
"'C:\\\\ this\\\\ will\\\\ work\\\\ '"
1356
1383
msgstr ""
1384
+ ">>> r'C:\\ this\\ will\\ work' '\\\\ '\n"
1385
+ "'C:\\\\ this\\\\ will\\\\ work\\\\ '"
1357
1386
1358
1387
msgid ""
1359
1388
"It is also possible to use :func:`os.path.join` to append a backslash on "
@@ -1364,6 +1393,8 @@ msgid ""
1364
1393
">>> os.path.join(r'C:\\ this\\ will\\ work', '')\n"
1365
1394
"'C:\\\\ this\\\\ will\\\\ work\\\\ '"
1366
1395
msgstr ""
1396
+ ">>> os.path.join(r'C:\\ this\\ will\\ work', '')\n"
1397
+ "'C:\\\\ this\\\\ will\\\\ work\\\\ '"
1367
1398
1368
1399
msgid ""
1369
1400
"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::"
1663
1694
msgstr ""
1664
1695
1665
1696
msgid ">>> A = [[None] * 2] * 3"
1666
- msgstr ""
1697
+ msgstr ">>> A = [[None] * 2] * 3 "
1667
1698
1668
1699
msgid "This looks correct if you print it:"
1669
1700
msgstr ""
@@ -1672,6 +1703,8 @@ msgid ""
1672
1703
">>> A\n"
1673
1704
"[[None, None], [None, None], [None, None]]"
1674
1705
msgstr ""
1706
+ ">>> A\n"
1707
+ "[[None, None], [None, None], [None, None]]"
1675
1708
1676
1709
msgid "But when you assign a value, it shows up in multiple places:"
1677
1710
msgstr ""
@@ -1681,6 +1714,9 @@ msgid ""
1681
1714
">>> A\n"
1682
1715
"[[5, None], [5, None], [5, None]]"
1683
1716
msgstr ""
1717
+ ">>> A[0][0] = 5\n"
1718
+ ">>> A\n"
1719
+ "[[5, None], [5, None], [5, None]]"
1684
1720
1685
1721
msgid ""
1686
1722
"The reason is that replicating a list with ``*`` doesn't create copies, it "
@@ -1815,6 +1851,8 @@ msgid ""
1815
1851
">>> a_tuple[0]\n"
1816
1852
"['foo', 'item']"
1817
1853
msgstr ""
1854
+ ">>> a_tuple[0]\n"
1855
+ "['foo', 'item']"
1818
1856
1819
1857
msgid ""
1820
1858
"To see why this happens, you need to know that (a) if an object implements "
@@ -1831,6 +1869,10 @@ msgid ""
1831
1869
">>> a_list\n"
1832
1870
"[1]"
1833
1871
msgstr ""
1872
+ ">>> a_list = []\n"
1873
+ ">>> a_list += [1]\n"
1874
+ ">>> a_list\n"
1875
+ "[1]"
1834
1876
1835
1877
msgid "This is equivalent to::"
1836
1878
msgstr ""
@@ -1839,6 +1881,8 @@ msgid ""
1839
1881
">>> result = a_list.__iadd__([1])\n"
1840
1882
">>> a_list = result"
1841
1883
msgstr ""
1884
+ ">>> result = a_list.__iadd__([1])\n"
1885
+ ">>> a_list = result"
1842
1886
1843
1887
msgid ""
1844
1888
"The object pointed to by a_list has been mutated, and the pointer to the "
@@ -2449,6 +2493,10 @@ msgid ""
2449
2493
">>> a is b\n"
2450
2494
"False"
2451
2495
msgstr ""
2496
+ ">>> a = []\n"
2497
+ ">>> b = []\n"
2498
+ ">>> a is b\n"
2499
+ "False"
2452
2500
2453
2501
msgid ""
2454
2502
"In the standard library code, you will see several common patterns for "
@@ -2704,6 +2752,8 @@ msgid ""
2704
2752
">>> import py_compile\n"
2705
2753
">>> py_compile.compile('foo.py') "
2706
2754
msgstr ""
2755
+ ">>> import py_compile\n"
2756
+ ">>> py_compile.compile('foo.py') "
2707
2757
2708
2758
msgid ""
2709
2759
"This will write the ``.pyc`` to a ``__pycache__`` subdirectory in the same "
@@ -2910,6 +2960,10 @@ msgid ""
2910
2960
">>> hex(id(cls.C))\n"
2911
2961
"'0x4198d0'"
2912
2962
msgstr ""
2963
+ ">>> hex(id(c.__class__))\n"
2964
+ "'0x7352a0'\n"
2965
+ ">>> hex(id(cls.C))\n"
2966
+ "'0x4198d0'"
2913
2967
2914
2968
msgid "argument"
2915
2969
msgstr "argument"
0 commit comments