@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"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 "
15
15
"PO-Revision-Date : 2024-05-11 00:32+0000\n "
16
16
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -64,45 +64,48 @@ msgid ""
64
64
":ref:`buffer protocol <bufferobjects>`."
65
65
msgstr "根据任何实现了 :ref:`缓冲区协议<bufferobjects>` 的对象 *o*,返回一个新的字节数组对象。"
66
66
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 ""
72
71
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
74
77
msgid ""
75
78
"Concat bytearrays *a* and *b* and return a new bytearray with the result."
76
79
msgstr "连接字节数组 *a* 和 *b* 并返回一个带有结果的新的字节数组。"
77
80
78
- #: ../../c-api/bytearray.rst:59
81
+ #: ../../c-api/bytearray.rst:64
79
82
msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer."
80
83
msgstr "在检查 ``NULL`` 指针后返回 *bytearray* 的大小。"
81
84
82
- #: ../../c-api/bytearray.rst:64
85
+ #: ../../c-api/bytearray.rst:69
83
86
msgid ""
84
87
"Return the contents of *bytearray* as a char array after checking for a "
85
88
"``NULL`` pointer. The returned array always has an extra null byte "
86
89
"appended."
87
90
msgstr "在检查 ``NULL`` 指针后返回将 *bytearray* 返回为一个字符数组。 返回的数组总是会附加一个额外的空字节。"
88
91
89
- #: ../../c-api/bytearray.rst:71
92
+ #: ../../c-api/bytearray.rst:76
90
93
msgid "Resize the internal buffer of *bytearray* to *len*."
91
94
msgstr "将 *bytearray* 的内部缓冲区的大小调整为 *len*。"
92
95
93
- #: ../../c-api/bytearray.rst:74
96
+ #: ../../c-api/bytearray.rst:79
94
97
msgid "Macros"
95
98
msgstr "宏"
96
99
97
- #: ../../c-api/bytearray.rst:76
100
+ #: ../../c-api/bytearray.rst:81
98
101
msgid "These macros trade safety for speed and they don't check pointers."
99
102
msgstr "这些宏减低安全性以换取性能,它们不检查指针。"
100
103
101
- #: ../../c-api/bytearray.rst:80
104
+ #: ../../c-api/bytearray.rst:85
102
105
msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking."
103
106
msgstr "类似于 :c:func:`PyByteArray_AsString`,但是不带错误检测。"
104
107
105
- #: ../../c-api/bytearray.rst:85
108
+ #: ../../c-api/bytearray.rst:90
106
109
msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking."
107
110
msgstr "类似于 :c:func:`PyByteArray_Size`,但是不带错误检测。"
108
111
0 commit comments