Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52946cb

Browse files
author
GitHub Action's update-translation job
committed
Update translation from Transifex
1 parent 37ecf51 commit 52946cb

3 files changed

Lines changed: 162 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ f'''![build](https://github.com/python/python-docs-pl/workflows/.github/workflow
1515
![{translators} tłumaczy](https://img.shields.io/badge/tłumaczy-{translators}-0.svg)''')
1616
]]] -->
1717
![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-lint-and-build.yml/badge.svg)
18-
![64.38% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-64.38%25-0.svg)
19-
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.53%25-0.svg)
18+
![65.54% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-65.54%25-0.svg)
19+
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.57%25-0.svg)
2020
![23 tłumaczy](https://img.shields.io/badge/tłumaczy-23-0.svg)
2121
<!-- [[[end]]] -->
2222

tutorial/errors.po

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,46 @@ msgid ""
11821182
" +------------------------------------\n"
11831183
">>>"
11841184
msgstr ""
1185+
">>> def f():\n"
1186+
"... raise ExceptionGroup(\n"
1187+
"... \"grupa1\",\n"
1188+
"... [\n"
1189+
"... OSError(1),\n"
1190+
"... SystemError(2),\n"
1191+
"... ExceptionGroup(\n"
1192+
"... \"grupa2\",\n"
1193+
"... [\n"
1194+
"... OSError(3),\n"
1195+
"... RecursionError(4)\n"
1196+
"... ]\n"
1197+
"... )\n"
1198+
"... ]\n"
1199+
"... )\n"
1200+
"...\n"
1201+
">>> try:\n"
1202+
"... f()\n"
1203+
"... except* OSError as e:\n"
1204+
"... print(\"Były OSErrors\")\n"
1205+
"... except* SystemError as e:\n"
1206+
"... print(\"Były SystemErrors\")\n"
1207+
"...\n"
1208+
"Były OSErrors\n"
1209+
"Były SystemErrors\n"
1210+
" + Exception Group Traceback (most recent call last):\n"
1211+
" | File \"<stdin>\", line 2, in <module>\n"
1212+
" | f()\n"
1213+
" | ~^^\n"
1214+
" | File \"<stdin>\", line 2, in f\n"
1215+
" | raise ExceptionGroup(\n"
1216+
" | ...<12 lines>...\n"
1217+
" | )\n"
1218+
" | ExceptionGroup: grupa1 (1 sub-exception)\n"
1219+
" +-+---------------- 1 ----------------\n"
1220+
" | ExceptionGroup: grupa2 (1 sub-exception)\n"
1221+
" +-+---------------- 1 ----------------\n"
1222+
" | RecursionError: 4\n"
1223+
" +------------------------------------\n"
1224+
">>>"
11851225

11861226
msgid ""
11871227
"Note that the exceptions nested in an exception group must be instances, not "
@@ -1252,6 +1292,20 @@ msgid ""
12521292
"Add some more information\n"
12531293
">>>"
12541294
msgstr ""
1295+
">>> try:\n"
1296+
"... raise TypeError('zły typ')\n"
1297+
"... except Exception as e:\n"
1298+
"... e.add_note('Dodaj trochę informacji')\n"
1299+
"... e.add_note('Dodaj jeszcze trochę informacji')\n"
1300+
"... raise\n"
1301+
"...\n"
1302+
"Traceback (most recent call last):\n"
1303+
" File \"<stdin>\", line 2, in <module>\n"
1304+
" raise TypeError('zły typ')\n"
1305+
"TypeError: zły typ\n"
1306+
"Dodaj trochę informacji\n"
1307+
"Dodaj jeszcze trochę informacji\n"
1308+
">>>"
12551309

12561310
msgid ""
12571311
"For example, when collecting exceptions into an exception group, we may want "
@@ -1309,3 +1363,48 @@ msgid ""
13091363
" +------------------------------------\n"
13101364
">>>"
13111365
msgstr ""
1366+
">>> def f():\n"
1367+
"... raise OSError('operacja się nie udała')\n"
1368+
"...\n"
1369+
">>> excs = []\n"
1370+
">>> for i in range(3):\n"
1371+
"... try:\n"
1372+
"... f()\n"
1373+
"... except Exception as e:\n"
1374+
"... e.add_note(f'Zdarzyło się w iteracji {i+1}')\n"
1375+
"... excs.append(e)\n"
1376+
"...\n"
1377+
">>> raise ExceptionGroup('Mamy jakieś problemy', excs)\n"
1378+
" + Exception Group Traceback (most recent call last):\n"
1379+
" | File \"<stdin>\", line 1, in <module>\n"
1380+
" | raise ExceptionGroup('Mamy jakieś problemy', excs)\n"
1381+
" | ExceptionGroup: Mamy jakieś problemy (3 sub-exceptions)\n"
1382+
" +-+---------------- 1 ----------------\n"
1383+
" | Traceback (most recent call last):\n"
1384+
" | File \"<stdin>\", line 3, in <module>\n"
1385+
" | f()\n"
1386+
" | ~^^\n"
1387+
" | File \"<stdin>\", line 2, in f\n"
1388+
" | raise OSError('operacja się nie udała')\n"
1389+
" | OSError: operacja się nie udała\n"
1390+
" | Zdarzyło się w iteracji 1\n"
1391+
" +---------------- 2 ----------------\n"
1392+
" | Traceback (most recent call last):\n"
1393+
" | File \"<stdin>\", line 3, in <module>\n"
1394+
" | f()\n"
1395+
" | ~^^\n"
1396+
" | File \"<stdin>\", line 2, in f\n"
1397+
" | raise OSError('operacja się nie udała')\n"
1398+
" | OSError: operacja się nie udała\n"
1399+
" | Zdarzyło się w iteracji 2\n"
1400+
" +---------------- 3 ----------------\n"
1401+
" | Traceback (most recent call last):\n"
1402+
" | File \"<stdin>\", line 3, in <module>\n"
1403+
" | f()\n"
1404+
" | ~^^\n"
1405+
" | File \"<stdin>\", line 2, in f\n"
1406+
" | raise OSError('operacja się nie udała')\n"
1407+
" | OSError: operacja się nie udała\n"
1408+
" | Zdarzyło się w iteracji 3\n"
1409+
" +------------------------------------\n"
1410+
">>>"

tutorial/floatingpoint.po

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.13\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-10-04 14:17+0000\n"
15+
"POT-Creation-Date: 2024-10-18 14:17+0000\n"
1616
"PO-Revision-Date: 2021-06-28 01:50+0000\n"
1717
"Last-Translator: Maciej Olko <[email protected]>, 2024\n"
1818
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
@@ -210,6 +210,14 @@ msgid ""
210210
">>> repr(math.pi)\n"
211211
"'3.141592653589793'"
212212
msgstr ""
213+
">>> format(math.pi, '.12g') # daj 12 znaczących cyfr\n"
214+
"'3.14159265359'\n"
215+
"\n"
216+
">>> format(math.pi, '.2f') # daj 2 cyfry po kropce\n"
217+
"'3.14'\n"
218+
"\n"
219+
">>> repr(math.pi)\n"
220+
"'3.141592653589793'"
213221

214222
msgid ""
215223
"It's important to realize that this is, in a real sense, an illusion: you're "
@@ -229,6 +237,8 @@ msgid ""
229237
">>> 0.1 + 0.1 + 0.1 == 0.3\n"
230238
"False"
231239
msgstr ""
240+
">>> 0.1 + 0.1 + 0.1 == 0.3\n"
241+
"False"
232242

233243
msgid ""
234244
"Also, since the 0.1 cannot get any closer to the exact value of 1/10 and 0.3 "
@@ -243,6 +253,8 @@ msgid ""
243253
">>> round(0.1, 1) + round(0.1, 1) + round(0.1, 1) == round(0.3, 1)\n"
244254
"False"
245255
msgstr ""
256+
">>> round(0.1, 1) + round(0.1, 1) + round(0.1, 1) == round(0.3, 1)\n"
257+
"False"
246258

247259
msgid ""
248260
"Though the numbers cannot be made closer to their intended exact values, "
@@ -256,6 +268,8 @@ msgid ""
256268
">>> math.isclose(0.1 + 0.1 + 0.1, 0.3)\n"
257269
"True"
258270
msgstr ""
271+
">>> math.isclose(0.1 + 0.1 + 0.1, 0.3)\n"
272+
"True"
259273

260274
msgid ""
261275
"Alternatively, the :func:`round` function can be used to compare rough "
@@ -268,6 +282,8 @@ msgid ""
268282
">>> round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)\n"
269283
"True"
270284
msgstr ""
285+
">>> round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)\n"
286+
"True"
271287

272288
msgid ""
273289
"Binary floating-point arithmetic holds many surprises like this. The "
@@ -361,6 +377,9 @@ msgid ""
361377
">>> x.as_integer_ratio()\n"
362378
"(3537115888337719, 1125899906842624)"
363379
msgstr ""
380+
">>> x = 3.14159\n"
381+
">>> x.as_integer_ratio()\n"
382+
"(3537115888337719, 1125899906842624)"
364383

365384
msgid ""
366385
"Since the ratio is exact, it can be used to losslessly recreate the original "
@@ -373,6 +392,8 @@ msgid ""
373392
">>> x == 3537115888337719 / 1125899906842624\n"
374393
"True"
375394
msgstr ""
395+
">>> x == 3537115888337719 / 1125899906842624\n"
396+
"True"
376397

377398
msgid ""
378399
"The :meth:`float.hex` method expresses a float in hexadecimal (base 16), "
@@ -386,6 +407,8 @@ msgid ""
386407
">>> x.hex()\n"
387408
"'0x1.921f9f01b866ep+1'"
388409
msgstr ""
410+
">>> x.hex()\n"
411+
"'0x1.921f9f01b866ep+1'"
389412

390413
msgid ""
391414
"This precise hexadecimal representation can be used to reconstruct the float "
@@ -398,6 +421,8 @@ msgid ""
398421
">>> x == float.fromhex('0x1.921f9f01b866ep+1')\n"
399422
"True"
400423
msgstr ""
424+
">>> x == float.fromhex('0x1.921f9f01b866ep+1')\n"
425+
"True"
401426

402427
msgid ""
403428
"Since the representation is exact, it is useful for reliably porting values "
@@ -429,6 +454,10 @@ msgid ""
429454
">>> sum([0.1] * 10) == 1.0\n"
430455
"True"
431456
msgstr ""
457+
">>> 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 == 1.0\n"
458+
"False\n"
459+
">>> sum([0.1] * 10) == 1.0\n"
460+
"True"
432461

433462
msgid ""
434463
"The :func:`math.fsum` goes further and tracks all of the \"lost digits\" as "
@@ -502,13 +531,13 @@ msgstr ""
502531
"dokładnie 53 bity. Zapisując ::"
503532

504533
msgid "1 / 10 ~= J / (2**N)"
505-
msgstr ""
534+
msgstr "1 / 10 ~= J / (2**N)"
506535

507536
msgid "as ::"
508537
msgstr "jako ::"
509538

510539
msgid "J ~= 2**N / 10"
511-
msgstr ""
540+
msgstr "J ~= 2**N / 10"
512541

513542
msgid ""
514543
"and recalling that *J* has exactly 53 bits (is ``>= 2**52`` but ``< "
@@ -521,6 +550,8 @@ msgid ""
521550
">>> 2**52 <= 2**56 // 10 < 2**53\n"
522551
"True"
523552
msgstr ""
553+
">>> 2**52 <= 2**56 // 10 < 2**53\n"
554+
"True"
524555

525556
msgid ""
526557
"That is, 56 is the only value for *N* that leaves *J* with exactly 53 bits. "
@@ -535,6 +566,9 @@ msgid ""
535566
">>> r\n"
536567
"6"
537568
msgstr ""
569+
">>> q, r = divmod(2**56, 10)\n"
570+
">>> r\n"
571+
"6"
538572

539573
msgid ""
540574
"Since the remainder is more than half of 10, the best approximation is "
@@ -547,6 +581,8 @@ msgid ""
547581
">>> q+1\n"
548582
"7205759403792794"
549583
msgstr ""
584+
">>> q+1\n"
585+
"7205759403792794"
550586

551587
msgid ""
552588
"Therefore the best possible approximation to 1/10 in IEEE 754 double "
@@ -556,14 +592,14 @@ msgstr ""
556592
"precyzji typu IEEE 754 jest::"
557593

558594
msgid "7205759403792794 / 2 ** 56"
559-
msgstr ""
595+
msgstr "7205759403792794 / 2 ** 56"
560596

561597
msgid ""
562598
"Dividing both the numerator and denominator by two reduces the fraction to::"
563599
msgstr "Podzielenie licznika i mianownika przez dwa zmniejsza ułamek do::"
564600

565601
msgid "3602879701896397 / 2 ** 55"
566-
msgstr ""
602+
msgstr "3602879701896397 / 2 ** 55"
567603

568604
msgid ""
569605
"Note that since we rounded up, this is actually a little bit larger than "
@@ -586,6 +622,8 @@ msgid ""
586622
">>> 0.1 * 2 ** 55\n"
587623
"3602879701896397.0"
588624
msgstr ""
625+
">>> 0.1 * 2 ** 55\n"
626+
"3602879701896397.0"
589627

590628
msgid ""
591629
"If we multiply that fraction by 10\\*\\*55, we can see the value out to 55 "
@@ -598,6 +636,8 @@ msgid ""
598636
">>> 3602879701896397 * 10 ** 55 // 2 ** 55\n"
599637
"1000000000000000055511151231257827021181583404541015625"
600638
msgstr ""
639+
">>> 3602879701896397 * 10 ** 55 // 2 ** 55\n"
640+
"1000000000000000055511151231257827021181583404541015625"
601641

602642
msgid ""
603643
"meaning that the exact number stored in the computer is equal to the decimal "
@@ -614,6 +654,8 @@ msgid ""
614654
">>> format(0.1, '.17f')\n"
615655
"'0.10000000000000001'"
616656
msgstr ""
657+
">>> format(0.1, '.17f')\n"
658+
"'0.10000000000000001'"
617659

618660
msgid ""
619661
"The :mod:`fractions` and :mod:`decimal` modules make these calculations easy:"
@@ -636,3 +678,17 @@ msgid ""
636678
">>> format(Decimal.from_float(0.1), '.17')\n"
637679
"'0.10000000000000001'"
638680
msgstr ""
681+
">>> from decimal import Decimal\n"
682+
">>> from fractions import Fraction\n"
683+
"\n"
684+
">>> Fraction.from_float(0.1)\n"
685+
"Fraction(3602879701896397, 36028797018963968)\n"
686+
"\n"
687+
">>> (0.1).as_integer_ratio()\n"
688+
"(3602879701896397, 36028797018963968)\n"
689+
"\n"
690+
">>> Decimal.from_float(0.1)\n"
691+
"Decimal('0.1000000000000000055511151231257827021181583404541015625')\n"
692+
"\n"
693+
">>> format(Decimal.from_float(0.1), '.17')\n"
694+
"'0.10000000000000001'"

0 commit comments

Comments
 (0)