@@ -3684,7 +3684,7 @@ msgid ""
36843684"This also avoids situations where extensions may find themselves running in "
36853685"a subinterpreter that they don't support (or haven't yet been loaded in). "
36863686"See :gh:`104668` for more info."
3687- msgstr ""
3687+ msgstr "这也避免了扩展程序在不支持(或尚未被加载)的子解释器中运行的情况。 请参阅 :gh:`104668` 了解更多信息。 "
36883688
36893689#: ../../whatsnew/3.12.rst:1919
36903690msgid ""
@@ -3696,14 +3696,17 @@ msgid ""
36963696"provided for efficient access to the value of :c:struct:`PyLongObject`\\ s "
36973697"which fit into a single machine word:"
36983698msgstr ""
3699+ ":c:struct:`PyLongObject` 对其内部字段进行了修改以提高性能。 虽然 :c:struct:`PyLongObject` "
3700+ "的内部字段是私有的,但某些扩展模块会使用它们。 内部字段不应再被直接访问,而应改用以 ``PyLong_...`` 打头的 API 函数。 新增了两个 "
3701+ "*暂定* API 函数用于高效访问适配至单个机器字的 :c:struct:`PyLongObject` 的值:"
36993702
37003703#: ../../whatsnew/3.12.rst:1927
37013704msgid ":c:func:`PyUnstable_Long_IsCompact`"
3702- msgstr ""
3705+ msgstr ":c:func:`PyUnstable_Long_IsCompact` "
37033706
37043707#: ../../whatsnew/3.12.rst:1928
37053708msgid ":c:func:`PyUnstable_Long_CompactValue`"
3706- msgstr ""
3709+ msgstr ":c:func:`PyUnstable_Long_CompactValue` "
37073710
37083711#: ../../whatsnew/3.12.rst:1930
37093712msgid ""
@@ -3713,6 +3716,9 @@ msgid ""
37133716"allocator is not already thread-safe and you need guidance then please "
37143717"create a new GitHub issue and CC ``@ericsnowcurrently``."
37153718msgstr ""
3719+ "通过 :c:func:`PyMem_SetAllocator` 设置的自定义分配器现在必须是线程安全的,无论内存域是什么。 "
3720+ "没有自己的状态的分配器,包括“钩子”将不会受影响。 如果你的自定义分配器还不是线程安全的且你需要指导则请创建一个新的 GitHub 问题并抄送给 "
3721+ "``@ericsnowcurrently``。"
37163722
37173723#: ../../whatsnew/3.12.rst:1940
37183724msgid "Deprecate global configuration variable:"
@@ -3880,24 +3886,28 @@ msgid ""
38803886"Type macros like :c:macro:`Py_T_INT`, :c:macro:`Py_T_DOUBLE`, etc. "
38813887"(previously ``T_INT``, ``T_DOUBLE``, etc.)"
38823888msgstr ""
3889+ "类型宏如 :c:macro:`Py_T_INT`, :c:macro:`Py_T_DOUBLE` 等(之前为 ``T_INT``, "
3890+ "``T_DOUBLE`` 等)"
38833891
38843892#: ../../whatsnew/3.12.rst:1982
38853893msgid ""
38863894"The flags :c:macro:`Py_READONLY` (previously ``READONLY``) and "
38873895":c:macro:`Py_AUDIT_READ` (previously all uppercase)"
38883896msgstr ""
3897+ "旗标 :c:macro:`Py_READONLY` (之前为 ``READONLY``) 和 :c:macro:`Py_AUDIT_READ` "
3898+ "(之前为全大写形式)"
38893899
38903900#: ../../whatsnew/3.12.rst:1985
38913901msgid "Several items are not exposed from ``Python.h``:"
3892- msgstr ""
3902+ msgstr "部分条目未从 ``Python.h`` 对外公开: "
38933903
38943904#: ../../whatsnew/3.12.rst:1987
38953905msgid ":c:macro:`T_OBJECT` (use :c:macro:`Py_T_OBJECT_EX`)"
3896- msgstr ""
3906+ msgstr ":c:macro:`T_OBJECT` (使用 :c:macro:`Py_T_OBJECT_EX`) "
38973907
38983908#: ../../whatsnew/3.12.rst:1988
38993909msgid ":c:macro:`T_NONE` (previously undocumented, and pretty quirky)"
3900- msgstr ""
3910+ msgstr ":c:macro:`T_NONE` (之前未写入文档,并且相当怪异) "
39013911
39023912#: ../../whatsnew/3.12.rst:1989
39033913msgid "The macro ``WRITE_RESTRICTED`` which does nothing."
0 commit comments