@@ -681,6 +681,8 @@ msgid ""
681681"class using negative :c:member:`~PyType_Spec.basicsize`. It is mandatory in "
682682"that case."
683683msgstr ""
684+ "只能在使用负的 :c:member:`~PyType_Spec.basicsize` 创建类时被用作 :c:member:`Py_tp_members "
685+ "<PyTypeObject.tp_members>` :c:type:`槽位 <PyType_Slot>` 的组成部分。 它在此种情况下是强制要求。"
684686
685687#: ../../c-api/structures.rst:558
686688msgid ""
@@ -689,6 +691,9 @@ msgid ""
689691" and sets :c:member:`PyMemberDef.offset` to the offset from the ``PyObject``"
690692" struct."
691693msgstr ""
694+ "这个旗标只能在 :c:type:`PyType_Slot` 中使用。 在类创建期间设置 "
695+ ":c:member:`~PyTypeObject.tp_members` 时,Python 会清除它并将 "
696+ ":c:member:`PyMemberDef.offset` 设为相对于 ``PyObject`` 结构体的偏移量。"
692697
693698#: ../../c-api/structures.rst:570
694699msgid ""
@@ -921,7 +926,7 @@ msgstr "用于获取属性的 C 函数。"
921926msgid ""
922927"Optional C function to set or delete the attribute. If ``NULL``, the "
923928"attribute is read-only."
924- msgstr ""
929+ msgstr "可选的用于设置或删除属性的 C 函数。 如为 ``NULL``,则属性将是只读的。 "
925930
926931#: ../../c-api/structures.rst:701
927932msgid "optional docstring"
@@ -936,7 +941,7 @@ msgstr "可选的函数指针,为 getter 和 setter 提供附加数据。"
936941msgid ""
937942"The ``get`` function takes one :c:expr:`PyObject*` parameter (the instance) "
938943"and a function pointer (the associated ``closure``):"
939- msgstr ""
944+ msgstr "``get`` 函数接受一个 :c:expr:`PyObject*` 形参 (实例) 和一个函数指针 (关联的 ``closure``): "
940945
941946#: ../../c-api/structures.rst:712
942947msgid ""
@@ -949,6 +954,7 @@ msgid ""
949954"``set`` functions take two :c:expr:`PyObject*` parameters (the instance and "
950955"the value to be set) and a function pointer (the associated ``closure``):"
951956msgstr ""
957+ "``set`` 函数接受两个 :c:expr:`PyObject*` 形参 (实例和要设置的值) 和一个函数指针 (关联的 ``closure``):"
952958
953959#: ../../c-api/structures.rst:720
954960msgid ""
0 commit comments