44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Freesand Leo <[email protected] >, 202187# jaystone776 <[email protected] >, 20218+ # Freesand Leo <[email protected] >, 202199#
1010#, fuzzy
1111msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414"Report-Msgid-Bugs-To : \n "
1515"POT-Creation-Date : 2021-06-29 12:56+0000\n "
1616"PO-Revision-Date : 2021-06-28 00:50+0000\n "
17- "Last-Translator : jaystone776 <1732865113@qq .com>, 2021\n "
17+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021\n "
1818"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1919"MIME-Version : 1.0\n "
2020"Content-Type : text/plain; charset=UTF-8\n "
@@ -34,20 +34,22 @@ msgstr "本节介绍的宏被用于管理 Python 对象的引用计数。"
3434
3535#: ../../c-api/refcounting.rst:16
3636msgid "Increment the reference count for object *o*."
37- msgstr ""
37+ msgstr "增加对象 *o* 的引用计数。 "
3838
3939#: ../../c-api/refcounting.rst:18
4040msgid ""
4141"This function is usually used to convert a :term:`borrowed reference` to a "
4242":term:`strong reference` in-place. The :c:func:`Py_NewRef` function can be "
4343"used to create a new :term:`strong reference`."
4444msgstr ""
45+ "此函数通常被用来将 :term:`borrowed reference` 原地转换为 :term:`strong reference`。 "
46+ ":c:func:`Py_NewRef` 函数可被用来创建新的 :term:`strong reference`。"
4547
4648#: ../../c-api/refcounting.rst:22
4749msgid ""
4850"The object must not be ``NULL``; if you aren't sure that it isn't ``NULL``, "
4951"use :c:func:`Py_XINCREF`."
50- msgstr ""
52+ msgstr "此对象必须不为 ``NULL``;如果你不能确定它不为 ``NULL``,请使用 :c:func:`Py_XINCREF`。 "
5153
5254#: ../../c-api/refcounting.rst:28
5355msgid ""
@@ -57,67 +59,69 @@ msgstr "增加对象 *o* 的引用计数。 对象可以为 ``NULL``,在此情
5759
5860#: ../../c-api/refcounting.rst:31
5961msgid "See also :c:func:`Py_XNewRef`."
60- msgstr ""
62+ msgstr "另请参阅 :c:func:`Py_XNewRef`。 "
6163
6264#: ../../c-api/refcounting.rst:36
6365msgid ""
6466"Create a new :term:`strong reference` to an object: increment the reference "
6567"count of the object *o* and return the object *o*."
66- msgstr ""
68+ msgstr "新建指向一个对象的 :term:`strong reference`: 增加对象 *o* 的引用计数并返回对象 *o*。 "
6769
6870#: ../../c-api/refcounting.rst:39
6971msgid ""
7072"When the :term:`strong reference` is no longer needed, :c:func:`Py_DECREF` "
7173"should be called on it to decrement the object reference count."
7274msgstr ""
75+ "当不再需要这个 :term:`strong reference` 时,应当在对象上调用 :c:func:`Py_DECREF` "
76+ "来有减少该对象的引用计数。"
7377
7478#: ../../c-api/refcounting.rst:42
7579msgid ""
7680"The object *o* must not be ``NULL``; use :c:func:`Py_XNewRef` if *o* can be "
7781"``NULL``."
78- msgstr ""
82+ msgstr "对象 *o* 必须不为 ``NULL``;如果 *o* 可以为 ``NULL`` 则应改用 :c:func:`Py_XNewRef`。 "
7983
8084#: ../../c-api/refcounting.rst:45
8185msgid "For example::"
8286msgstr "例如:"
8387
8488#: ../../c-api/refcounting.rst:50
8589msgid "can be written as::"
86- msgstr ""
90+ msgstr "可以写成:: "
8791
8892#: ../../c-api/refcounting.rst:54
8993msgid "See also :c:func:`Py_INCREF`."
90- msgstr ""
94+ msgstr "另请参阅 :c:func:`Py_INCREF`。 "
9195
9296#: ../../c-api/refcounting.rst:61
9397msgid "Similar to :c:func:`Py_NewRef`, but the object *o* can be NULL."
94- msgstr ""
98+ msgstr "类似于 :c:func:`Py_NewRef`,但对象 *o* 可以为 NULL。 "
9599
96100#: ../../c-api/refcounting.rst:63
97101msgid "If the object *o* is ``NULL``, the function just returns ``NULL``."
98- msgstr ""
102+ msgstr "如果对象 *o* 为 ``NULL``,该函数也·将返回 ``NULL``。 "
99103
100104#: ../../c-api/refcounting.rst:70
101105msgid "Decrement the reference count for object *o*."
102- msgstr ""
106+ msgstr "减少对象 *o* 的引用计数。 "
103107
104108#: ../../c-api/refcounting.rst:72
105109msgid ""
106110"If the reference count reaches zero, the object's type's deallocation "
107111"function (which must not be ``NULL``) is invoked."
108- msgstr ""
112+ msgstr "如果引用计数达到零,则会发起调用对象类型的撤销分配函数 (该函数必须不为 ``NULL``)。 "
109113
110114#: ../../c-api/refcounting.rst:75
111115msgid ""
112116"This function is usually used to delete a :term:`strong reference` before "
113117"exiting its scope."
114- msgstr ""
118+ msgstr "此函数通常被用于在退出作用域之前删除一个 :term:`strong reference`。 "
115119
116120#: ../../c-api/refcounting.rst:78
117121msgid ""
118122"The object must not be ``NULL``; if you aren't sure that it isn't ``NULL``, "
119123"use :c:func:`Py_XDECREF`."
120- msgstr ""
124+ msgstr "此对象必须不为 ``NULL``;如果你不能确定它不为 ``NULL``,请使用 :c:func:`Py_XDECREF`。 "
121125
122126#: ../../c-api/refcounting.rst:83
123127msgid ""
0 commit comments