44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Rafael Fontenelle <[email protected] >, 2022 7+ # Rafael Fontenelle <[email protected] >, 2023 88#
99#, fuzzy
1010msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.10\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2023-08-11 15:16 +0000\n "
14+ "POT-Creation-Date : 2023-08-18 15:12 +0000\n "
1515"PO-Revision-Date : 2022-11-05 17:21+0000\n "
16- "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2022 \n "
16+ "
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023 \n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1818"MIME-Version : 1.0\n "
1919"Content-Type : text/plain; charset=UTF-8\n "
@@ -35,7 +35,7 @@ msgstr "本节介绍的宏被用于管理 Python 对象的引用计数。"
3535msgid ""
3636"Indicate taking a new :term:`strong reference` to object *o*, indicating it "
3737"is in use and should not be destroyed."
38- msgstr ""
38+ msgstr "表示为对象 *o* 获取一个新的 :term:`strong reference`,指明该对象正在被使用且不应被销毁。 "
3939
4040#: ../../c-api/refcounting.rst:19
4141msgid ""
@@ -48,7 +48,7 @@ msgstr ""
4848
4949#: ../../c-api/refcounting.rst:23
5050msgid "When done using the object, release it by calling :c:func:`Py_DECREF`."
51- msgstr ""
51+ msgstr "当对象使用完毕后,可调用 :c:func:`Py_DECREF` 释放它。 "
5252
5353#: ../../c-api/refcounting.rst:25
5454msgid ""
@@ -64,7 +64,7 @@ msgstr ""
6464msgid ""
6565"Similar to :c:func:`Py_INCREF`, but the object *o* can be ``NULL``, in which"
6666" case this has no effect."
67- msgstr ""
67+ msgstr "与 :c:func:`Py_INCREF` 类似,但对象 *o* 可以为 ``NULL``,在这种情况下此函数将没有任何效果。 "
6868
6969#: ../../c-api/refcounting.rst:36
7070msgid "See also :c:func:`Py_XNewRef`."
@@ -75,12 +75,13 @@ msgid ""
7575"Create a new :term:`strong reference` to an object: call :c:func:`Py_INCREF`"
7676" on *o* and return the object *o*."
7777msgstr ""
78+ "为对象创建一个新的 :term:`strong reference`: 在 *o* 上调用 :c:func:`Py_INCREF` 并返回对象 *o*。"
7879
7980#: ../../c-api/refcounting.rst:44
8081msgid ""
8182"When the :term:`strong reference` is no longer needed, :c:func:`Py_DECREF` "
8283"should be called on it to release the reference."
83- msgstr ""
84+ msgstr "当不再需要这个 :term:`strong reference` 时,应当在其上调用 :c:func:`Py_DECREF` 来释放引用。 "
8485
8586#: ../../c-api/refcounting.rst:47
8687msgid ""
@@ -112,14 +113,16 @@ msgstr "如果对象 *o* 为 ``NULL``,该函数也·将返回 ``NULL``。"
112113msgid ""
113114"Release a :term:`strong reference` to object *o*, indicating the reference "
114115"is no longer used."
115- msgstr ""
116+ msgstr "释放一个指向对象 *o* 的 :term:`strong reference`,表明该引用不再被使用。 "
116117
117118#: ../../c-api/refcounting.rst:78
118119msgid ""
119120"Once the last :term:`strong reference` is released (i.e. the object's "
120121"reference count reaches 0), the object's type's deallocation function (which"
121122" must not be ``NULL``) is invoked."
122123msgstr ""
124+ "当最后一个 :term:`strong reference` 被释放时 (即对象的引用计数变为 0),将会发起调用该对象所属类型的 "
125+ "deallocation 函数 (它必须不为 ``NULL``)。"
123126
124127#: ../../c-api/refcounting.rst:83
125128msgid ""
@@ -157,6 +160,8 @@ msgid ""
157160" case this has no effect. The same warning from :c:func:`Py_DECREF` applies "
158161"here as well."
159162msgstr ""
163+ "与 :c:func:`Py_DECREF` 类似,但对象 *o* 可以为 ``NULL``,在这种情况下此函数将没有任何效果。 来自 "
164+ ":c:func:`Py_DECREF` 的警告同样适用于此处。"
160165
161166#: ../../c-api/refcounting.rst:112
162167msgid ""
@@ -167,26 +172,34 @@ msgid ""
167172"to the object passed because the macro carefully uses a temporary variable "
168173"and sets the argument to ``NULL`` before releasing the reference."
169174msgstr ""
175+ "释放一个指向对象 *o* 的 :term:`strong reference`。 对象可以为 "
176+ "``NULL``,在此情况下该宏将没有任何效果;在其他情况下其效果与 :c:func:`Py_DECREF` 相同,区别在于其参数也会被设为 "
177+ "``NULL``。 针对 :c:func:`Py_DECREF` 的警告不适用于所传递的对象,因为该宏会细心地使用一个临时变量并在释放引用之前将参数设为"
178+ " ``NULL``。"
170179
171180#: ../../c-api/refcounting.rst:120
172181msgid ""
173182"It is a good idea to use this macro whenever releasing a reference to an "
174183"object that might be traversed during garbage collection."
175- msgstr ""
184+ msgstr "当需要释放指向一个在垃圾回收期间可能被会遍历的对象的引用时使用该宏是一个好主意。 "
176185
177186#: ../../c-api/refcounting.rst:125
178187msgid ""
179188"Indicate taking a new :term:`strong reference` to object *o*. A function "
180189"version of :c:func:`Py_XINCREF`. It can be used for runtime dynamic "
181190"embedding of Python."
182191msgstr ""
192+ "表示获取一个指向对象 *o* 的新 :term:`strong reference`。 :c:func:`Py_XINCREF` 的函数版本。 "
193+ "它可被用于 Python 的运行时动态嵌入。"
183194
184195#: ../../c-api/refcounting.rst:132
185196msgid ""
186197"Release a :term:`strong reference` to object *o*. A function version of "
187198":c:func:`Py_XDECREF`. It can be used for runtime dynamic embedding of "
188199"Python."
189200msgstr ""
201+ "释放一个指向对象 *o* 的 :term:`strong reference`。 :c:func:`Py_XDECREF` 的函数版本。 它可被用于 "
202+ "Python 的运行时动态嵌入。"
190203
191204#: ../../c-api/refcounting.rst:137
192205msgid ""
0 commit comments