Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a69e77

Browse files
[po] auto sync
1 parent 2a1f22b commit 2a69e77

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

c-api/bytes.po

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,16 @@ msgid ""
317317
"*obj* is not a bytes object at all, :c:func:`PyBytes_AsStringAndSize` "
318318
"returns ``-1`` and raises :exc:`TypeError`."
319319
msgstr ""
320+
"该缓冲区指向 *obj* 的内部缓冲,它的末尾包含一个额外的空字节(不算在 *length* 当中)。 该数据不可通过任何方式来修改,除非是刚使用 "
321+
"``PyBytes_FromStringAndSize(NULL, size)`` 创建该对象。 它不可被撤销分配。 如果 *obj* "
322+
"根本不是一个字节串对象,则 :c:func:`PyBytes_AsStringAndSize` 将返回 ``-1`` 并引发 "
323+
":exc:`TypeError`。"
320324

321325
#: ../../c-api/bytes.rst:173
322326
msgid ""
323327
"Previously, :exc:`TypeError` was raised when embedded null bytes were "
324328
"encountered in the bytes object."
325-
msgstr ""
329+
msgstr "以前,当字节串对象中出现嵌入的空字节时将引发 :exc:`TypeError`。"
326330

327331
#: ../../c-api/bytes.rst:180
328332
msgid ""
@@ -333,13 +337,18 @@ msgid ""
333337
"of *\\*bytes* will be set to ``NULL``; the appropriate exception will be "
334338
"set."
335339
msgstr ""
340+
"在 *\\*bytes* 中创建新的字节串对象,其中包含添加到 *bytes* 的 *newpart* 的内容;调用者将获得新的引用。 对 "
341+
"*bytes* 原值的引用将被收回。 如果无法创建新对象,对 *bytes* 的旧引用仍将被丢弃且 *\\*bytes* 的值将被设为 "
342+
"``NULL``;并将设置适当的异常。"
336343

337344
#: ../../c-api/bytes.rst:189
338345
msgid ""
339346
"Create a new bytes object in *\\*bytes* containing the contents of *newpart*"
340347
" appended to *bytes*. This version decrements the reference count of "
341348
"*newpart*."
342349
msgstr ""
350+
"在 *\\*bytes* 中创建新的字节串对象,其中包含添加到 *bytes* 的 *newpart* 的内容。 此版本会减少 *newpart* "
351+
"的引用计数。"
343352

344353
#: ../../c-api/bytes.rst:196
345354
msgid ""
@@ -354,3 +363,8 @@ msgid ""
354363
"*\\*bytes* is deallocated, *\\*bytes* is set to ``NULL``, :exc:`MemoryError`"
355364
" is set, and ``-1`` is returned."
356365
msgstr ""
366+
"改变字节串大小的一种方式,即使其为“不可变对象”。 此方式仅用于创建全新的字节串对象;如果字节串在代码的其他部分已知则不可使用此方式。 "
367+
"如果输入字节串对象的引用计数不为一则调用此函数将报错。 传入一个现有字节串对象的地址作为 lvalue(它可能会被写入),并传入希望的新大小。 "
368+
"当成功时,*\\*bytes* 将存放改变大小后的字节串对象并返回 ``0``;*\\*bytes* 中的地址可能与其输入值不同。 如果重新分配失败,则"
369+
" *\\*bytes* 上的原字节串对象将被撤销分配,*\\*bytes* 会被设为 ``NULL``,同时设置 :exc:`MemoryError` "
370+
"并返回 ``-1``。"

howto/sockets.po

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# ww song <[email protected]>, 2018
1010
# kily zhou <[email protected]>, 2019
1111
# Meng Du <[email protected]>, 2019
12-
# Freesand Leo <[email protected]>, 2019
12+
# Freesand Leo <[email protected]>, 2020
1313
#
1414
#, fuzzy
1515
msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818
"Report-Msgid-Bugs-To: \n"
1919
"POT-Creation-Date: 2020-05-18 13:55+0000\n"
2020
"PO-Revision-Date: 2017-02-16 17:46+0000\n"
21-
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
21+
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2222
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -489,6 +489,9 @@ msgid ""
489489
"the exact same idea. You do this after creating the socket, but before using"
490490
" it. (Actually, if you're nuts, you can switch back and forth.)"
491491
msgstr ""
492+
"在 Python 中是使用 ``socket.setblocking(0)`` 来使其为非阻塞。 在 C 中做法更为复杂(例如,你需要在 BSD 风格的"
493+
" ``O_NONBLOCK`` 和几乎无区别的 POSIX 风格的 ``O_NDELAY`` 之间作出选择,这与 ``TCP_NODELAY`` "
494+
"完全不一样。)。 但其思路是完全相同的。 你要在创建套拼字之后但在使用它之前执行此操作。 (实际上,除非你是疯子才会反复切换。)"
492495

493496
#: ../../howto/sockets.rst:327
494497
msgid ""

library/datetime.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ msgstr "感知型对象和简单型对象"
9090

9191
#: ../../library/datetime.rst:38
9292
msgid "Date and time objects may be categorized as \"aware\" or \"naive\"."
93-
msgstr ""
93+
msgstr "日期和时间对象可以分为“感知型”和“简单型”两类。"
9494

9595
#: ../../library/datetime.rst:40
9696
msgid ""

0 commit comments

Comments
 (0)