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

Skip to content

Commit abc7bab

Browse files
[po] auto sync
1 parent 7117690 commit abc7bab

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

c-api/dict.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ msgid ""
208208
"Its value represents offsets within the internal dictionary structure, and "
209209
"since the structure is sparse, the offsets are not consecutive."
210210
msgstr ""
211+
"迭代字典 *p* 中的所有键值对。 在第一次调用此函数开始迭代之前,由 *ppos* 所引用的 :c:type:`Py_ssize_t` 必须初始化为 "
212+
"``0``;该函数将为字典中的每个键值对返回真值,一旦所有键值对报告完毕则返回假值。 形参 *pkey* 和 *pvalue* 应当指向 "
213+
":c:type:`PyObject\\*` 变量,它们将分别使用每个键和值来填充,或者也可以为 ``NULL``。 通过它们返回的任何引用都是暂借的。 "
214+
"*ppos* 在迭代期间不应被更改。 它的值表示内部字典结构中的偏移量,并且由于结构是稀疏的,因此偏移量并不连续。"
211215

212216
#: ../../c-api/dict.rst:169
213217
msgid "For example::"

c-api/gcsupport.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ msgid ""
9494
"resized object or ``NULL`` on failure. *op* must not be tracked by the "
9595
"collector yet."
9696
msgstr ""
97+
"为 :c:func:`PyObject_NewVar` 所分配对象重新调整大小。 返回调整大小后的对象或在失败时返回 ``NULL``。 *op* "
98+
"必须尚未被垃圾回收器追踪。"
9799

98100
#: ../../c-api/gcsupport.rst:57
99101
msgid ""
@@ -186,6 +188,9 @@ msgid ""
186188
"object argument. If *visit* returns a non-zero value that value should be "
187189
"returned immediately."
188190
msgstr ""
191+
"用于容器对象的遍历函数。 它的实现必须对 *self* 所直接包含的每个对象调用 *visit* 函数,*visit* "
192+
"的形参为所包含对象和传给处理程序的 *arg* 值。 *visit* 函数调用不可附带 ``NULL`` 对象作为参数。 如果 *visit* "
193+
"返回非零值,则该值应当被立即返回。"
189194

190195
#: ../../c-api/gcsupport.rst:117
191196
msgid ""
@@ -204,12 +209,16 @@ msgid ""
204209
"*arg*. If *visit* returns a non-zero value, then return it. Using this "
205210
"macro, :c:member:`~PyTypeObject.tp_traverse` handlers look like::"
206211
msgstr ""
212+
"如果 *o* 不为 ``NULL``,则调用 *visit* 回调函数,附带参数 *o* 和 *arg*。 如果 *visit* "
213+
"返回一个非零值,则返回该值。 使用此宏之后,:c:member:`~PyTypeObject.tp_traverse` 处理程序的形式如下::"
207214

208215
#: ../../c-api/gcsupport.rst:137
209216
msgid ""
210217
"The :c:member:`~PyTypeObject.tp_clear` handler must be of the "
211218
":c:type:`inquiry` type, or ``NULL`` if the object is immutable."
212219
msgstr ""
220+
":c:member:`~PyTypeObject.tp_clear` 处理程序必须为 :c:type:`inquiry` 类型,如果对象不可变则为 "
221+
"``NULL``。"
213222

214223
#: ../../c-api/gcsupport.rst:143
215224
msgid ""

c-api/gen.po

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# ww song <[email protected]>, 2018
8+
# Freesand Leo <[email protected]>, 2019
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2019-10-31 11:48+0000\n"
1516
"PO-Revision-Date: 2017-02-16 17:35+0000\n"
16-
"Last-Translator: ww song <sww4718168@gmail.com>, 2018\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -45,20 +46,20 @@ msgstr "与生成器对象对应的类型对​​象。"
4546

4647
#: ../../c-api/gen.rst:25
4748
msgid "Return true if *ob* is a generator object; *ob* must not be ``NULL``."
48-
msgstr ""
49+
msgstr "如果 *ob* 是一个生成器对象则返回真值;*ob* 必须不为 ``NULL``。"
4950

5051
#: ../../c-api/gen.rst:30
5152
msgid ""
5253
"Return true if *ob*'s type is :c:type:`PyGen_Type`; *ob* must not be "
5354
"``NULL``."
54-
msgstr ""
55+
msgstr "如果 *ob* 的类型为 :c:type:`PyGen_Type` 则返回真值;*ob* 必须不为 ``NULL``。"
5556

5657
#: ../../c-api/gen.rst:35
5758
msgid ""
5859
"Create and return a new generator object based on the *frame* object. A "
5960
"reference to *frame* is stolen by this function. The argument must not be "
6061
"``NULL``."
61-
msgstr ""
62+
msgstr "基于 *frame* 对象创建并返回一个新的生成器对象。 此函数会取走一个对 *frame* 的引用。 参数必须不为 ``NULL``。"
6263

6364
#: ../../c-api/gen.rst:41
6465
msgid ""
@@ -67,3 +68,5 @@ msgid ""
6768
"to *frame* is stolen by this function. The *frame* argument must not be "
6869
"``NULL``."
6970
msgstr ""
71+
"基于 *frame* 对象创建并返回一个新的生成器对象,其中 ``__name__`` 和 ``__qualname__`` 设为 *name* 和 "
72+
"*qualname*。 此函数会取走一个对 *frame* 的引用。 *frame* 参数必须不为 ``NULL``。"

0 commit comments

Comments
 (0)