@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.12\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2024-01-19 14:14 +0000\n "
16+ "POT-Creation-Date : 2024-01-26 14:13 +0000\n "
1717"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1818"
Last-Translator :
Freesand Leo <[email protected] >, 2024\n "
1919"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -677,23 +677,18 @@ msgstr ""
677677#: ../../c-api/structures.rst:553
678678msgid ""
679679"Can only be used as part of :c:member:`Py_tp_members "
680- "<PyTypeObject.tp_members>` :c:type:`slot <PyTypeSlot >` when creating a class "
681- " using negative :c:member:`~PyType_Spec.basicsize`. It is mandatory in that "
682- "case."
680+ "<PyTypeObject.tp_members>` :c:type:`slot <PyType_Slot >` when creating a "
681+ "class using negative :c:member:`~PyType_Spec.basicsize`. It is mandatory in "
682+ "that case."
683683msgstr ""
684- "只能在使用负的 :c:member:`~PyType_Spec.basicsize` 创建类时用作 :c:member:`Py_tp_members "
685- "<PyTypeObject.tp_members>` :c:type:`槽位 <PyTypeSlot>` 的组成部分。 它在此种情况下是强制要求。"
686684
687685#: ../../c-api/structures.rst:558
688686msgid ""
689- "This flag is only used in :c:type:`PyTypeSlot `. When setting "
687+ "This flag is only used in :c:type:`PyType_Slot `. When setting "
690688":c:member:`~PyTypeObject.tp_members` during class creation, Python clears it"
691689" and sets :c:member:`PyMemberDef.offset` to the offset from the ``PyObject``"
692690" struct."
693691msgstr ""
694- "这个旗标只能在 :c:type:`PyTypeSlot` 中使用。 在类创建期间中设置 "
695- ":c:member:`~PyTypeObject.tp_members` 时,Python 会清除它并将 "
696- ":c:member:`PyMemberDef.offset` 设为相对于 ``PyObject`` 结构的偏移量。"
697692
698693#: ../../c-api/structures.rst:570
699694msgid ""
@@ -924,40 +919,38 @@ msgstr "用于获取属性的 C 函数。"
924919
925920#: ../../c-api/structures.rst:696
926921msgid ""
927- "Optional C function to set or delete the attribute, if omitted the attribute "
928- " is readonly ."
929- msgstr "用于设置或删除属性的可选 C 函数,如果省略则属性将为只读。 "
922+ "Optional C function to set or delete the attribute. If ``NULL``, the "
923+ "attribute is read-only ."
924+ msgstr ""
930925
931- #: ../../c-api/structures.rst:700
926+ #: ../../c-api/structures.rst:701
932927msgid "optional docstring"
933928msgstr "可选的文档字符串"
934929
935- #: ../../c-api/structures.rst:704
930+ #: ../../c-api/structures.rst:705
936931msgid ""
937932"Optional function pointer, providing additional data for getter and setter."
938933msgstr "可选的函数指针,为 getter 和 setter 提供附加数据。"
939934
940- #: ../../c-api/structures.rst:706
935+ #: ../../c-api/structures.rst:709
941936msgid ""
942937"The ``get`` function takes one :c:expr:`PyObject*` parameter (the instance) "
943- "and a function pointer (the associated ``closure``):: "
938+ "and a function pointer (the associated ``closure``):"
944939msgstr ""
945- "``get`` 函数接受一个 :c:expr:`PyObject*` 形参 (实例) 和一个函数指针 (关联的 ``closure``)::"
946940
947- #: ../../c-api/structures.rst:711
941+ #: ../../c-api/structures.rst:712
948942msgid ""
949943"It should return a new reference on success or ``NULL`` with a set exception"
950944" on failure."
951945msgstr "它应当在成功时返回一个新的引用或在失败时返回 ``NULL`` 并设置异常。"
952946
953- #: ../../c-api/structures.rst:714
947+ #: ../../c-api/structures.rst:717
954948msgid ""
955949"``set`` functions take two :c:expr:`PyObject*` parameters (the instance and "
956- "the value to be set) and a function pointer (the associated ``closure``):: "
950+ "the value to be set) and a function pointer (the associated ``closure``):"
957951msgstr ""
958- "``set`` 函数接受两个 :c:expr:`PyObject*` 形参 (实例和要设置的值) 和一个函数指针 (关联的 ``closure``)::"
959952
960- #: ../../c-api/structures.rst:719
953+ #: ../../c-api/structures.rst:720
961954msgid ""
962955"In case the attribute should be deleted the second parameter is ``NULL``. "
963956"Should return ``0`` on success or ``-1`` with a set exception on failure."
0 commit comments