@@ -2967,6 +2967,8 @@ msgid ""
29672967"Autoconf 2.71 and aclocal 1.16.4 is now required to regenerate "
29682968":file:`!configure`. (Contributed by Christian Heimes in :gh:`89886`.)"
29692969msgstr ""
2970+ "现在需要有 autoconf 2.71 和 aclocal 1.16.4 才能重新生成 :file:`!configure`。 (由 Christian"
2971+ " Heimes 在 :gh:`89886` 中贡献。)"
29702972
29712973#: ../../whatsnew/3.12.rst:1591
29722974msgid "C API Changes"
@@ -2979,6 +2981,8 @@ msgid ""
29792981"change in each minor release of CPython without deprecation warnings. Its "
29802982"contents are marked by the ``PyUnstable_`` prefix in names."
29812983msgstr ""
2984+ ":pep:`697`: 引入了 :ref:`不稳定 C API 层 <unstable-c-api>`,用于调试器和 JIT 编译器等低层级工具。 该 "
2985+ "API 可能会在 CPython 的每个次要版本中发生变化而不发出弃用警告。 其内容在名称中会以 ``PyUnstable_`` 前缀标记。"
29822986
29832987#: ../../whatsnew/3.12.rst:1603
29842988msgid "Code object constructors:"
@@ -3052,16 +3056,20 @@ msgid ""
30523056"to allow safely extending certain variable-sized types, including "
30533057":c:var:`PyType_Type`."
30543058msgstr ""
3059+ "添加了 :c:macro:`Py_TPFLAGS_ITEMS_AT_END` 和 :c:func:`PyObject_GetItemData` "
3060+ "以允许安全地扩展某些可变大小的类型,包括 :c:var:`PyType_Type`。"
30553061
30563062#: ../../whatsnew/3.12.rst:1629
30573063msgid ""
30583064":c:macro:`Py_RELATIVE_OFFSET` added to allow defining :c:type:`members "
30593065"<PyMemberDef>` in terms of a subclass-specific struct."
30603066msgstr ""
3067+ "添加了 :c:macro:`Py_RELATIVE_OFFSET` 以允许用特定于子类的结构体来定义 :c:type:`成员 "
3068+ "<PyMemberDef>`。"
30613069
30623070#: ../../whatsnew/3.12.rst:1632
30633071msgid "(Contributed by Petr Viktorin in :gh:`103509`.)"
3064- msgstr ""
3072+ msgstr "(由 Petr Viktorin 在 :gh:`103509` 中贡献。) "
30653073
30663074#: ../../whatsnew/3.12.rst:1634
30673075msgid ""
@@ -3070,24 +3078,30 @@ msgid ""
30703078":c:func:`PyType_FromModuleAndSpec` using an additional metaclass argument. "
30713079"(Contributed by Wenzel Jakob in :gh:`93012`.)"
30723080msgstr ""
3081+ "添加了新的 :ref:`受限 C API <limited-c-api>` 函数 "
3082+ ":c:func:`PyType_FromMetaclass`,它使用额外的 metaclass 参数对现有的 "
3083+ ":c:func:`PyType_FromModuleAndSpec` 进行了泛化。 (由 Wenzel Jakob 在 :gh:`93012` "
3084+ "中贡献。)"
30733085
30743086#: ../../whatsnew/3.12.rst:1639
30753087msgid ""
30763088"API for creating objects that can be called using :ref:`the vectorcall "
30773089"protocol <vectorcall>` was added to the :ref:`Limited API <stable>`:"
30783090msgstr ""
3091+ "在 :ref:`受限 <stable>` 中添加了用于创建可使用 :ref:`vectorcall 协议 <vectorcall>` 来调用的对象的 "
3092+ "API:"
30793093
30803094#: ../../whatsnew/3.12.rst:1643
30813095msgid ":c:macro:`Py_TPFLAGS_HAVE_VECTORCALL`"
3082- msgstr ""
3096+ msgstr ":c:macro:`Py_TPFLAGS_HAVE_VECTORCALL` "
30833097
30843098#: ../../whatsnew/3.12.rst:1644
30853099msgid ":c:func:`PyVectorcall_NARGS`"
3086- msgstr ""
3100+ msgstr ":c:func:`PyVectorcall_NARGS` "
30873101
30883102#: ../../whatsnew/3.12.rst:1645
30893103msgid ":c:func:`PyVectorcall_Call`"
3090- msgstr ""
3104+ msgstr ":c:func:`PyVectorcall_Call` "
30913105
30923106#: ../../whatsnew/3.12.rst:1646
30933107msgid ":c:type:`vectorcallfunc`"
@@ -3103,6 +3117,11 @@ msgid ""
31033117"``Py_TPFLAGS_HAVE_VECTORCALL`` flag. (Contributed by Petr Viktorin in "
31043118":gh:`93274`.)"
31053119msgstr ""
3120+ "现在当一个类的 :py:meth:`~object.__call__` 方法被重新赋值时,该类的 "
3121+ ":c:macro:`Py_TPFLAGS_HAVE_VECTORCALL` 旗标将被移除。 这使得 vectorcall "
3122+ "可以安全地用于可变类型(即没有不可变旗标 :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` 的堆类型)。 未重载 "
3123+ ":c:member:`~PyTypeObject.tp_call` 的可变类型现在继承了 ``Py_TPFLAGS_HAVE_VECTORCALL`` "
3124+ "旗标。 (由 Petr Viktorin 在 :gh:`93274` 中贡献。)"
31063125
31073126#: ../../whatsnew/3.12.rst:1656
31083127msgid ""
0 commit comments