55#
66# Translators:
77# python-doc bot, 2025
8+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2025
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version :Python 3.10\n "
1314"Report-Msgid-Bugs-To :\n "
14- "POT-Creation-Date :2025-01-03 16:02 +0000\n "
15+ "POT-Creation-Date :2025-09-22 02:50 +0000\n "
1516"PO-Revision-Date :2025-09-21 19:23+0000\n "
16- "Last-Translator :python-doc bot , 2025\n "
17+ "Last-Translator :Rafael Fontenelle <rffontenelle@gmail.com> , 2025\n "
1718"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1819"MIME-Version :1.0\n "
1920"Content-Type :text/plain; charset=UTF-8\n "
@@ -70,6 +71,9 @@ msgid ""
7071"must be done by using the macros :c:macro:`Py_REFCNT`, :c:macro:`Py_TYPE`, "
7172"and :c:macro:`Py_SIZE`."
7273msgstr ""
74+ "这是一个 :c:type:`PyObject` 的添加了 :attr:`ob_size` 字段的扩展。 它仅用于具有某种 *长度* 标记的对象。 "
75+ "此类型并不经常在 Python/C API 中出现。 对成员的访问必须通过使用 :c:macro:`Py_REFCNT`, "
76+ ":c:macro:`Py_TYPE` 和 :c:macro:`Py_SIZE` 宏来完成。"
7377
7478#: ../../c-api/structures.rst:46
7579msgid ""
@@ -175,6 +179,7 @@ msgid ""
175179":c:type:`PyVarObject` type, including the :attr:`ob_size` field. This macro "
176180"expands to::"
177181msgstr ""
182+ "这是一个为新的 :c:type:`PyVarObject` 类型扩展初始化值的宏,包括 :attr:`ob_size` 字段。 该宏扩展为::"
178183
179184#: ../../c-api/structures.rst:170
180185msgid "Implementing functions and methods"
@@ -202,25 +207,31 @@ msgid ""
202207"Type of the functions used to implement Python callables in C with signature"
203208" :const:`METH_VARARGS | METH_KEYWORDS`. The function signature is::"
204209msgstr ""
210+ "用于在 C 中实现具有 :const:`METH_VARARGS | METH_KEYWORDS` 签名的 Python 可调用对象的函数类型。 "
211+ "函数的签名为::"
205212
206213#: ../../c-api/structures.rst:199
207214msgid ""
208215"Type of the functions used to implement Python callables in C with signature"
209216" :const:`METH_FASTCALL`. The function signature is::"
210- msgstr ""
217+ msgstr "用于在 C 中实现具有 :const:`METH_FASTCALL` 签名的 Python 可调用对象的函数类型。 函数的签名为:: "
211218
212219#: ../../c-api/structures.rst:209
213220msgid ""
214221"Type of the functions used to implement Python callables in C with signature"
215222" :const:`METH_FASTCALL | METH_KEYWORDS`. The function signature is::"
216223msgstr ""
224+ "用于在 C 中实现具有 :const:`METH_FASTCALL | METH_KEYWORDS` 签名的 Python 可调用对象的函数类型。 "
225+ "函数的签名为::"
217226
218227#: ../../c-api/structures.rst:220
219228msgid ""
220229"Type of the functions used to implement Python callables in C with signature"
221230" :const:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS`. The function "
222231"signature is::"
223232msgstr ""
233+ "用于在 C 中实现具有 :const:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS` 签名的 Python "
234+ "可调用对象的函数类型。 函数的签名为::"
224235
225236#: ../../c-api/structures.rst:235
226237msgid ""
@@ -230,11 +241,11 @@ msgstr "用于描述一个扩展类型的方法的结构体。 该结构体有
230241
231242#: ../../c-api/structures.rst:240
232243msgid "name of the method"
233- msgstr ""
244+ msgstr "方法名 "
234245
235246#: ../../c-api/structures.rst:244
236247msgid "pointer to the C implementation"
237- msgstr ""
248+ msgstr "指向 C 实现的指针 "
238249
239250#: ../../c-api/structures.rst:248
240251msgid "flags bits indicating how the call should be constructed"
@@ -323,6 +334,8 @@ msgid ""
323334" class*, that is, the class that contains the method in question. The "
324335"defining class might be a superclass of ``Py_TYPE(self)``."
325336msgstr ""
337+ ":const:`METH_FASTCALL | METH_KEYWORDS` 的扩展支持 *定义式类*,也就是包含相应方法的类。 定义式类可以是 "
338+ "``Py_TYPE(self)`` 的超类。"
326339
327340#: ../../c-api/structures.rst:322
328341msgid ""
@@ -341,6 +354,9 @@ msgid ""
341354"and will hold a reference to the module or object instance. In all cases "
342355"the second parameter will be ``NULL``."
343356msgstr ""
357+ "没有形参的方法如果通过 :const:`METH_NOARGS` 旗标列出了参数则不需要检查是否提供了参数。 它们必须为 "
358+ ":c:type:`PyCFunction` 类型。 第一个形参通常命名为 *self* 并将存放一个指向模块或对象实例的引用。 "
359+ "在所有情况下第二个形参都将为 ``NULL``。"
344360
345361#: ../../c-api/structures.rst:340
346362msgid ""
@@ -396,6 +412,10 @@ msgid ""
396412"helpful because calls to PyCFunctions are optimized more than wrapper object"
397413" calls."
398414msgstr ""
415+ "该方法将被载入来替代现有的定义。 如果没有 *METH_COEXIST*,默认将跳过重复的定义。 由于槽位包装器会在方法表之前被载入,例如当存在 "
416+ "*sq_contains* 槽位时,将会生成一个名为 :meth:`__contains__` 的已包装方法并阻止载入具有相同名称的对应 "
417+ "PyCFunction。 如果定义了此旗标,则 PyCFunction 将被载入来替代此包装器对象并将与槽位共存。 因为对This is helpful"
418+ " because calls to PyCFunctions 的调用比包装器对象调用更为优化所以这是很有帮助的。"
399419
400420#: ../../c-api/structures.rst:388
401421msgid "Accessing attributes of extension types"
@@ -731,7 +751,7 @@ msgstr "void \\*"
731751#: ../../c-api/structures.rst:504
732752msgid ""
733753"optional function pointer, providing additional data for getter and setter"
734- msgstr ""
754+ msgstr "可选的函数指针,为 getter 和 setter 提供附加数据 "
735755
736756#: ../../c-api/structures.rst:509
737757msgid ""