Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dab5435

Browse filesBrowse files
author
GitHub Action's update-translation job
committed
Update translation from Transifex
1 parent b4d64fa commit dab5435
Copy full SHA for dab5435

File tree

4 files changed

+129
-1
lines changed
Filter options

4 files changed

+129
-1
lines changed

‎extending/newtypes_tutorial.po

Copy file name to clipboardExpand all lines: extending/newtypes_tutorial.po
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ msgid ""
225225
" File \"<stdin>\", line 1, in <module>\n"
226226
"TypeError: can only concatenate str (not \"custom.Custom\") to str"
227227
msgstr ""
228+
">>> \"\" + custom.Custom()\n"
229+
"Traceback (most recent call last):\n"
230+
" File \"<stdin>\", line 1, in <module>\n"
231+
"TypeError: can only concatenate str (not \"custom.Custom\") to str"
228232

229233
msgid ""
230234
"Note that the name is a dotted name that includes both the module name and "
@@ -1257,6 +1261,11 @@ msgid ""
12571261
">>> n = Derived()\n"
12581262
">>> n.some_attribute = n"
12591263
msgstr ""
1264+
">>> import custom3\n"
1265+
">>> class Derived(custom3.Custom): pass\n"
1266+
"...\n"
1267+
">>> n = Derived()\n"
1268+
">>> n.some_attribute = n"
12601269

12611270
msgid ""
12621271
"To allow a :class:`!Custom` instance participating in a reference cycle to "
@@ -1616,6 +1625,15 @@ msgid ""
16161625
">>> print(s.increment())\n"
16171626
"2"
16181627
msgstr ""
1628+
">>> import sublist\n"
1629+
">>> s = sublist.SubList(range(3))\n"
1630+
">>> s.extend(s)\n"
1631+
">>> print(len(s))\n"
1632+
"6\n"
1633+
">>> print(s.increment())\n"
1634+
"1\n"
1635+
">>> print(s.increment())\n"
1636+
"2"
16191637

16201638
msgid ""
16211639
"#define PY_SSIZE_T_CLEAN\n"

‎faq/general.po

Copy file name to clipboardExpand all lines: faq/general.po
+26-1Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Translators:
77
# Stefan Ocetkiewicz <stefan.ocetkiewicz@gmail.com>, 2021
88
# Krzysztof Abramowicz, 2022
9+
# Stan Ulbrych, 2025
910
#
1011
#, fuzzy
1112
msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415
"Report-Msgid-Bugs-To: \n"
1516
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
1617
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
17-
"Last-Translator: Krzysztof Abramowicz, 2022\n"
18+
"Last-Translator: Stan Ulbrych, 2025\n"
1819
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
@@ -570,6 +571,30 @@ msgid ""
570571
">>> L\n"
571572
"[1]"
572573
msgstr ""
574+
">>> L = []\n"
575+
">>> dir(L)\n"
576+
"['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',\n"
577+
"'__dir__', '__doc__', '__eq__', '__format__', '__ge__',\n"
578+
"'__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__',\n"
579+
"'__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__',\n"
580+
"'__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',\n"
581+
"'__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__',\n"
582+
"'__sizeof__', '__str__', '__subclasshook__', 'append', 'clear',\n"
583+
"'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove',\n"
584+
"'reverse', 'sort']\n"
585+
">>> [d for d in dir(L) if '__' not in d]\n"
586+
"['append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', "
587+
"'remove', 'reverse', 'sort']\n"
588+
"\n"
589+
">>> help(L.append)\n"
590+
"Help on built-in function append:\n"
591+
"\n"
592+
"append(...)\n"
593+
" L.append(object) -> None -- append object to end\n"
594+
"\n"
595+
">>> L.append(1)\n"
596+
">>> L\n"
597+
"[1]"
573598

574599
msgid ""
575600
"With the interpreter, documentation is never far from the student as they "

‎faq/programming.po

Copy file name to clipboardExpand all lines: faq/programming.po
+71Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,13 @@ msgid ""
596596
">>> x\n"
597597
"[10]"
598598
msgstr ""
599+
">>> x = []\n"
600+
">>> y = x\n"
601+
">>> y.append(10)\n"
602+
">>> y\n"
603+
"[10]\n"
604+
">>> x\n"
605+
"[10]"
599606

600607
msgid ""
601608
"you might be wondering why appending an element to ``y`` changed ``x`` too."
@@ -900,6 +907,16 @@ msgid ""
900907
">>> print(a)\n"
901908
"<__main__.A object at 0x16D07CC>"
902909
msgstr ""
910+
">>> class A:\n"
911+
"... pass\n"
912+
"...\n"
913+
">>> B = A\n"
914+
">>> a = B()\n"
915+
">>> b = a\n"
916+
">>> print(b)\n"
917+
"<__main__.A object at 0x16D07CC>\n"
918+
">>> print(a)\n"
919+
"<__main__.A object at 0x16D07CC>"
903920

904921
msgid ""
905922
"Arguably the class has a name: even though it is bound to two names and "
@@ -1100,6 +1117,12 @@ msgid ""
11001117
">>> b\n"
11011118
"178"
11021119
msgstr ""
1120+
">>> a = 0xa5\n"
1121+
">>> a\n"
1122+
"165\n"
1123+
">>> b = 0XB2\n"
1124+
">>> b\n"
1125+
"178"
11031126

11041127
msgid "Why does -22 // 10 return -3?"
11051128
msgstr "Dlaczego -22 // 10 zwraca -3?"
@@ -1318,6 +1341,11 @@ msgid ""
13181341
">>> lines.rstrip(\"\\n\\r\")\n"
13191342
"'line 1 '"
13201343
msgstr ""
1344+
">>> lines = (\"line 1 \\r\\n\"\n"
1345+
"... \"\\r\\n\"\n"
1346+
"... \"\\r\\n\")\n"
1347+
">>> lines.rstrip(\"\\n\\r\")\n"
1348+
"'line 1 '"
13211349

13221350
msgid ""
13231351
"Since this is typically only desired when reading text one line at a time, "
@@ -1808,6 +1836,11 @@ msgid ""
18081836
" ...\n"
18091837
"TypeError: 'tuple' object does not support item assignment"
18101838
msgstr ""
1839+
">>> a_tuple = (1, 2)\n"
1840+
">>> a_tuple[0] += 1\n"
1841+
"Traceback (most recent call last):\n"
1842+
" ...\n"
1843+
"TypeError: 'tuple' object does not support item assignment"
18111844

18121845
msgid ""
18131846
"The reason for the exception should be immediately clear: ``1`` is added to "
@@ -1829,6 +1862,11 @@ msgid ""
18291862
" ...\n"
18301863
"TypeError: 'tuple' object does not support item assignment"
18311864
msgstr ""
1865+
">>> result = a_tuple[0] + 1\n"
1866+
">>> a_tuple[0] = result\n"
1867+
"Traceback (most recent call last):\n"
1868+
" ...\n"
1869+
"TypeError: 'tuple' object does not support item assignment"
18321870

18331871
msgid ""
18341872
"It is the assignment part of the operation that produces the error, since a "
@@ -1845,6 +1883,11 @@ msgid ""
18451883
" ...\n"
18461884
"TypeError: 'tuple' object does not support item assignment"
18471885
msgstr ""
1886+
">>> a_tuple = (['foo'], 'bar')\n"
1887+
">>> a_tuple[0] += ['item']\n"
1888+
"Traceback (most recent call last):\n"
1889+
" ...\n"
1890+
"TypeError: 'tuple' object does not support item assignment"
18481891

18491892
msgid ""
18501893
"The exception is a bit more surprising, and even more surprising is the fact "
@@ -1905,6 +1948,11 @@ msgid ""
19051948
" ...\n"
19061949
"TypeError: 'tuple' object does not support item assignment"
19071950
msgstr ""
1951+
">>> result = a_tuple[0].__iadd__(['item'])\n"
1952+
">>> a_tuple[0] = result\n"
1953+
"Traceback (most recent call last):\n"
1954+
" ...\n"
1955+
"TypeError: 'tuple' object does not support item assignment"
19081956

19091957
msgid ""
19101958
"The :meth:`!__iadd__` succeeds, and thus the list is extended, but even "
@@ -1950,6 +1998,16 @@ msgid ""
19501998
">>> result\n"
19511999
"['else', 'sort', 'to', 'something']"
19522000
msgstr ""
2001+
">>> list1 = [\"what\", \"I'm\", \"sorting\", \"by\"]\n"
2002+
">>> list2 = [\"something\", \"else\", \"to\", \"sort\"]\n"
2003+
">>> pairs = zip(list1, list2)\n"
2004+
">>> pairs = sorted(pairs)\n"
2005+
">>> pairs\n"
2006+
"[(\"I'm\", 'else'), ('by', 'sort'), ('sorting', 'to'), ('what', "
2007+
"'something')]\n"
2008+
">>> result = [x[1] for x in pairs]\n"
2009+
">>> result\n"
2010+
"['else', 'sort', 'to', 'something']"
19532011

19542012
msgid "Objects"
19552013
msgstr "Obiekty"
@@ -2487,6 +2545,17 @@ msgid ""
24872545
">>> a is c\n"
24882546
"False"
24892547
msgstr ""
2548+
">>> a = 1000\n"
2549+
">>> b = 500\n"
2550+
">>> c = b + 500\n"
2551+
">>> a is c\n"
2552+
"False\n"
2553+
"\n"
2554+
">>> a = 'Python'\n"
2555+
">>> b = 'Py'\n"
2556+
">>> c = b + 'thon'\n"
2557+
">>> a is c\n"
2558+
"False"
24902559

24912560
msgid "Likewise, new instances of mutable containers are never identical::"
24922561
msgstr ""
@@ -2756,6 +2825,8 @@ msgid ""
27562825
">>> import py_compile\n"
27572826
">>> py_compile.compile('foo.py')"
27582827
msgstr ""
2828+
">>> import py_compile\n"
2829+
">>> py_compile.compile('foo.py')"
27592830

27602831
msgid ""
27612832
"This will write the ``.pyc`` to a ``__pycache__`` subdirectory in the same "

‎glossary.po

Copy file name to clipboardExpand all lines: glossary.po
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,9 @@ msgid ""
831831
">>> __future__.division\n"
832832
"_Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)"
833833
msgstr ""
834+
">>> import __future__\n"
835+
">>> __future__.division\n"
836+
"_Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)"
834837

835838
msgid "garbage collection"
836839
msgstr "zbieranie śmieci"
@@ -1732,6 +1735,17 @@ msgid ""
17321735
">>> C.D.meth.__qualname__\n"
17331736
"'C.D.meth'"
17341737
msgstr ""
1738+
">>> class C:\n"
1739+
"... class D:\n"
1740+
"... def meth(self):\n"
1741+
"... pass\n"
1742+
"...\n"
1743+
">>> C.__qualname__\n"
1744+
"'C'\n"
1745+
">>> C.D.__qualname__\n"
1746+
"'C.D'\n"
1747+
">>> C.D.meth.__qualname__\n"
1748+
"'C.D.meth'"
17351749

17361750
msgid ""
17371751
"When used to refer to modules, the *fully qualified name* means the entire "

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.