@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-06-14 18:58 +0000\n "
14+ "POT-Creation-Date : 2024-08-03 23:51 +0000\n "
1515"PO-Revision-Date : 2024-05-11 00:32+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -64,45 +64,48 @@ msgid ""
6464":ref:`buffer protocol <bufferobjects>`."
6565msgstr "根据任何实现了 :ref:`缓冲区协议<bufferobjects>` 的对象 *o*,返回一个新的字节数组对象。"
6666
67- #: ../../c-api/bytearray.rst:48
68- msgid ""
69- "Create a new bytearray object from *string* and its length, *len*. On "
70- "failure, ``NULL`` is returned."
71- msgstr "根据 *string* 及其长度 *len* 创建一个新的 bytearray 对象。 当失败时返回 ``NULL``。"
67+ #: ../../c-api/bytearray.rst:45 ../../c-api/bytearray.rst:52
68+ #: ../../c-api/bytearray.rst:59
69+ msgid "On failure, return ``NULL`` with an exception set."
70+ msgstr ""
7271
73- #: ../../c-api/bytearray.rst:54
72+ #: ../../c-api/bytearray.rst:50
73+ msgid "Create a new bytearray object from *string* and its length, *len*."
74+ msgstr ""
75+
76+ #: ../../c-api/bytearray.rst:57
7477msgid ""
7578"Concat bytearrays *a* and *b* and return a new bytearray with the result."
7679msgstr "连接字节数组 *a* 和 *b* 并返回一个带有结果的新的字节数组。"
7780
78- #: ../../c-api/bytearray.rst:59
81+ #: ../../c-api/bytearray.rst:64
7982msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer."
8083msgstr "在检查 ``NULL`` 指针后返回 *bytearray* 的大小。"
8184
82- #: ../../c-api/bytearray.rst:64
85+ #: ../../c-api/bytearray.rst:69
8386msgid ""
8487"Return the contents of *bytearray* as a char array after checking for a "
8588"``NULL`` pointer. The returned array always has an extra null byte "
8689"appended."
8790msgstr "在检查 ``NULL`` 指针后返回将 *bytearray* 返回为一个字符数组。 返回的数组总是会附加一个额外的空字节。"
8891
89- #: ../../c-api/bytearray.rst:71
92+ #: ../../c-api/bytearray.rst:76
9093msgid "Resize the internal buffer of *bytearray* to *len*."
9194msgstr "将 *bytearray* 的内部缓冲区的大小调整为 *len*。"
9295
93- #: ../../c-api/bytearray.rst:74
96+ #: ../../c-api/bytearray.rst:79
9497msgid "Macros"
9598msgstr "宏"
9699
97- #: ../../c-api/bytearray.rst:76
100+ #: ../../c-api/bytearray.rst:81
98101msgid "These macros trade safety for speed and they don't check pointers."
99102msgstr "这些宏减低安全性以换取性能,它们不检查指针。"
100103
101- #: ../../c-api/bytearray.rst:80
104+ #: ../../c-api/bytearray.rst:85
102105msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking."
103106msgstr "类似于 :c:func:`PyByteArray_AsString`,但是不带错误检测。"
104107
105- #: ../../c-api/bytearray.rst:85
108+ #: ../../c-api/bytearray.rst:90
106109msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking."
107110msgstr "类似于 :c:func:`PyByteArray_Size`,但是不带错误检测。"
108111
0 commit comments