@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-10-09 19:08 +0000\n "
14+ "POT-Creation-Date : 2026-10-17 16:44 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -42,6 +42,13 @@ msgid ""
4242"UTF-8 representation is created on demand and cached in the Unicode object."
4343msgstr ""
4444
45+ msgid ""
46+ "The internal buffer always includes an extra trailing null character for "
47+ "compatibility with null terminated C strings. This extra character is not "
48+ "counted in :c:func:`PyUnicode_GetLength` nor in the various *size* arguments "
49+ "of the functions below."
50+ msgstr ""
51+
4552msgid ""
4653"The :c:type:`Py_UNICODE` representation has been removed since Python 3.12 "
4754"with deprecated APIs. See :pep:`623` for more information."
@@ -153,7 +160,12 @@ msgstr ""
153160
154161msgid ""
155162"Read a code point from a canonical representation *data* (as obtained with :"
156- "c:func:`PyUnicode_DATA`). No checks or ready calls are performed."
163+ "c:func:`PyUnicode_DATA`). No checks are performed."
164+ msgstr ""
165+
166+ msgid ""
167+ "Accept reading the trailing null character at index :c:func:"
168+ "`PyUnicode_GetLength`."
157169msgstr ""
158170
159171msgid ""
@@ -374,6 +386,12 @@ msgid ""
374386"range, it will be transformed into UCS1 (:c:macro:`PyUnicode_1BYTE_KIND`)."
375387msgstr ""
376388
389+ msgid ""
390+ "All characters must be in range [U+0000; U+10ffff]. If *kind* is :c:macro:"
391+ "`PyUnicode_4BYTE_KIND` and the string contains invalid characters, the "
392+ "behavior is undefined."
393+ msgstr ""
394+
377395msgid ""
378396"Create a Unicode object from the char buffer *str*. The bytes will be "
379397"interpreted as being UTF-8 encoded. The buffer is copied into the new "
@@ -794,6 +812,9 @@ msgstr ""
794812msgid "On error, set an exception and return ``-1``."
795813msgstr ""
796814
815+ msgid "The length does not count the trailing null character."
816+ msgstr ""
817+
797818msgid ""
798819"Copy characters from one Unicode object into another. This function "
799820"performs character conversion when necessary and falls back to :c:func:`!"
@@ -862,6 +883,11 @@ msgstr ""
862883msgid "Return character on success, ``-1`` on error with an exception set."
863884msgstr ""
864885
886+ msgid ""
887+ "Do not accept reading the trailing null character at index :c:func:"
888+ "`PyUnicode_GetLength`."
889+ msgstr ""
890+
865891msgid ""
866892"Return a substring of *unicode*, from character index *start* (included) to "
867893"character index *end* (excluded). Negative indices are not supported. On "
@@ -1801,6 +1827,11 @@ msgid ""
18011827"success, or :c:func:`PyUnicodeWriter_Discard` on error."
18021828msgstr ""
18031829
1830+ msgid ""
1831+ "The API is **not thread safe**. To share a writer with multiple threads, a "
1832+ "critical section or a lock is needed."
1833+ msgstr ""
1834+
18041835msgid "Create a Unicode writer instance."
18051836msgstr ""
18061837
@@ -1865,12 +1896,17 @@ msgid ""
18651896"``wcslen(str)`` to get the string length."
18661897msgstr ""
18671898
1868- msgid "Writer the UCS4 string *str* into *writer*."
1899+ msgid "Write the UCS4 string *str* into *writer*."
18691900msgstr ""
18701901
18711902msgid "*size* is a number of UCS4 characters."
18721903msgstr ""
18731904
1905+ msgid ""
1906+ "All characters must be in range [U+0000; U+10ffff]. If the string contains "
1907+ "invalid characters, the behavior is undefined."
1908+ msgstr ""
1909+
18741910msgid ""
18751911"Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
18761912msgstr ""
0 commit comments