@@ -18,7 +18,7 @@ msgid ""
1818msgstr ""
1919"Project-Id-Version : Python 3.12\n "
2020"Report-Msgid-Bugs-To : \n "
21- "POT-Creation-Date : 2023-08-11 14:13+0000\n "
21+ "POT-Creation-Date : 2023-12-29 14:13+0000\n "
2222"PO-Revision-Date : 2021-06-28 00:47+0000\n "
2323"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
2424"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -296,10 +296,10 @@ msgstr "类似于 :c:func:`PyBytes_AsString`,但是不带错误检测。"
296296#: ../../c-api/bytes.rst:156
297297msgid ""
298298"Return the null-terminated contents of the object *obj* through the output "
299- "variables *buffer* and *length*."
300- msgstr "通过输出变量 *buffer* 和 *length* 返回以 null 为终止符的对象 *obj* 的内容。 "
299+ "variables *buffer* and *length*. Returns ``0`` on success. "
300+ msgstr ""
301301
302- #: ../../c-api/bytes.rst:159
302+ #: ../../c-api/bytes.rst:160
303303msgid ""
304304"If *length* is ``NULL``, the bytes object may not contain embedded null "
305305"bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is "
@@ -308,7 +308,7 @@ msgstr ""
308308"如果 *length* 为 ``NULL``,字节串对象就不包含嵌入的空字节;如果包含,则该函数将返回 ``-1`` 并引发 "
309309":exc:`ValueError`。"
310310
311- #: ../../c-api/bytes.rst:163
311+ #: ../../c-api/bytes.rst:164
312312msgid ""
313313"The buffer refers to an internal buffer of *obj*, which includes an "
314314"additional null byte at the end (not counted in *length*). The data must "
@@ -322,13 +322,13 @@ msgstr ""
322322"根本不是一个字节串对象,则 :c:func:`PyBytes_AsStringAndSize` 将返回 ``-1`` 并引发 "
323323":exc:`TypeError`。"
324324
325- #: ../../c-api/bytes.rst:170
325+ #: ../../c-api/bytes.rst:171
326326msgid ""
327327"Previously, :exc:`TypeError` was raised when embedded null bytes were "
328328"encountered in the bytes object."
329329msgstr "以前,当字节串对象中出现嵌入的空字节时将引发 :exc:`TypeError`。"
330330
331- #: ../../c-api/bytes.rst:177
331+ #: ../../c-api/bytes.rst:178
332332msgid ""
333333"Create a new bytes object in *\\ *bytes* containing the contents of *newpart*"
334334" appended to *bytes*; the caller will own the new reference. The reference "
@@ -341,7 +341,7 @@ msgstr ""
341341"*bytes* 原值的引用将被收回。 如果无法创建新对象,对 *bytes* 的旧引用仍将被丢弃且 *\\ *bytes* 的值将被设为 "
342342"``NULL``;并将设置适当的异常。"
343343
344- #: ../../c-api/bytes.rst:186
344+ #: ../../c-api/bytes.rst:187
345345msgid ""
346346"Create a new bytes object in *\\ *bytes* containing the contents of *newpart*"
347347" appended to *bytes*. This version releases the :term:`strong reference` to"
@@ -350,7 +350,7 @@ msgstr ""
350350"在 *\\ *bytes* 中创建一个新的字节串对象,其中包含添加到 *bytes* 的 *newpart* 的内容。 此版本将释放对 *newpart*"
351351" 的 :term:`strong reference` (即递减其引用计数)。"
352352
353- #: ../../c-api/bytes.rst:193
353+ #: ../../c-api/bytes.rst:194
354354msgid ""
355355"A way to resize a bytes object even though it is \" immutable\" . Only use "
356356"this to build up a brand new bytes object; don't use this if the bytes may "
0 commit comments