@@ -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-13 19:59 +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 : Indonesian (https://app.transifex.com/python-doc/teams/5390/ "
@@ -41,6 +41,13 @@ msgid ""
4141"UTF-8 representation is created on demand and cached in the Unicode object."
4242msgstr ""
4343
44+ msgid ""
45+ "The internal buffer always includes an extra trailing null character for "
46+ "compatibility with null terminated C strings. This extra character is not "
47+ "counted in :c:func:`PyUnicode_GetLength` nor in the various *size* arguments "
48+ "of the functions below."
49+ msgstr ""
50+
4451msgid ""
4552"The :c:type:`Py_UNICODE` representation has been removed since Python 3.12 "
4653"with deprecated APIs. See :pep:`623` for more information."
@@ -152,7 +159,12 @@ msgstr ""
152159
153160msgid ""
154161"Read a code point from a canonical representation *data* (as obtained with :"
155- "c:func:`PyUnicode_DATA`). No checks or ready calls are performed."
162+ "c:func:`PyUnicode_DATA`). No checks are performed."
163+ msgstr ""
164+
165+ msgid ""
166+ "Accept reading the trailing null character at index :c:func:"
167+ "`PyUnicode_GetLength`."
156168msgstr ""
157169
158170msgid ""
@@ -373,6 +385,12 @@ msgid ""
373385"range, it will be transformed into UCS1 (:c:macro:`PyUnicode_1BYTE_KIND`)."
374386msgstr ""
375387
388+ msgid ""
389+ "All characters must be in range [U+0000; U+10ffff]. If *kind* is :c:macro:"
390+ "`PyUnicode_4BYTE_KIND` and the string contains invalid characters, the "
391+ "behavior is undefined."
392+ msgstr ""
393+
376394msgid ""
377395"Create a Unicode object from the char buffer *str*. The bytes will be "
378396"interpreted as being UTF-8 encoded. The buffer is copied into the new "
@@ -793,6 +811,9 @@ msgstr ""
793811msgid "On error, set an exception and return ``-1``."
794812msgstr ""
795813
814+ msgid "The length does not count the trailing null character."
815+ msgstr ""
816+
796817msgid ""
797818"Copy characters from one Unicode object into another. This function "
798819"performs character conversion when necessary and falls back to :c:func:`!"
@@ -861,6 +882,11 @@ msgstr ""
861882msgid "Return character on success, ``-1`` on error with an exception set."
862883msgstr ""
863884
885+ msgid ""
886+ "Do not accept reading the trailing null character at index :c:func:"
887+ "`PyUnicode_GetLength`."
888+ msgstr ""
889+
864890msgid ""
865891"Return a substring of *unicode*, from character index *start* (included) to "
866892"character index *end* (excluded). Negative indices are not supported. On "
@@ -1800,6 +1826,11 @@ msgid ""
18001826"success, or :c:func:`PyUnicodeWriter_Discard` on error."
18011827msgstr ""
18021828
1829+ msgid ""
1830+ "The API is **not thread safe**. To share a writer with multiple threads, a "
1831+ "critical section or a lock is needed."
1832+ msgstr ""
1833+
18031834msgid "Create a Unicode writer instance."
18041835msgstr ""
18051836
@@ -1864,12 +1895,17 @@ msgid ""
18641895"``wcslen(str)`` to get the string length."
18651896msgstr ""
18661897
1867- msgid "Writer the UCS4 string *str* into *writer*."
1898+ msgid "Write the UCS4 string *str* into *writer*."
18681899msgstr ""
18691900
18701901msgid "*size* is a number of UCS4 characters."
18711902msgstr ""
18721903
1904+ msgid ""
1905+ "All characters must be in range [U+0000; U+10ffff]. If the string contains "
1906+ "invalid characters, the behavior is undefined."
1907+ msgstr ""
1908+
18731909msgid ""
18741910"Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
18751911msgstr ""
0 commit comments