@@ -3309,9 +3309,9 @@ msgid ""
33093309"new_refcnt)``: see :c:func:`Py_SET_REFCNT()` (available since Python 3.9). "
33103310"For backward compatibility, this macro can be used::"
33113311msgstr ""
3312- "由于 :c:func:`Py_REFCNT()` 已被改为内联静态函数 ,``Py_REFCNT(obj) = new_refcnt`` 必须被替换为 "
3313- "``Py_SET_REFCNT(obj, new_refcnt)``: 参见 :c:func:`Py_SET_REFCNT()` ( 自 Python "
3314- "3.9 起可用)。 为保持向下兼容性,可使用这个宏:: "
3312+ "由于 :c:func:`Py_REFCNT()` 已改为内联静态函数 ,``Py_REFCNT(obj) = new_refcnt`` 必须换成 "
3313+ "``Py_SET_REFCNT(obj, new_refcnt)``: 参见 :c:func:`Py_SET_REFCNT()` ( 自 Python "
3314+ "3.9 起提供)。为保持向下兼容,可用此宏: "
33153315
33163316#: ../../whatsnew/3.10.rst:2058
33173317msgid "(Contributed by Victor Stinner in :issue:`39573`.)"
@@ -3323,8 +3323,8 @@ msgid ""
33233323"for historical reason. It is no longer allowed. (Contributed by Victor "
33243324"Stinner in :issue:`40839`.)"
33253325msgstr ""
3326- "不带 :term:`GIL` 地调用 :c:func:`PyDict_GetItem` 曾出于历史原因被允许。 现在已不再被允许。 (由 Victor "
3327- "Stinner 在 :issue:`40839` 中贡献。 )"
3326+ "由于历史原因,曾经允许调用 :c:func:`PyDict_GetItem` 时不带 :term:`GIL` 。 现在则不行了。 (由 Victor "
3327+ "Stinner 贡献于 :issue:`40839` )"
33283328
33293329#: ../../whatsnew/3.10.rst:2064
33303330msgid ""
@@ -3333,19 +3333,19 @@ msgid ""
33333333"now. Use :c:func:`PyUnicode_New` to allocate Unicode object without initial"
33343334" data. (Contributed by Inada Naoki in :issue:`36346`.)"
33353335msgstr ""
3336- "``PyUnicode_FromUnicode(NULL, size)`` 和 ``PyUnicode_FromStringAndSize(NULL, "
3337- "size)`` 现在会引发 ``DeprecationWarning``。 请使用 :c:func:`PyUnicode_New` 来分配不带初始数据的"
3338- " Unicode 对象。 (由 Inada Naoki 在 :issue:`36346` 中贡献。)"
3336+ "现在, ``PyUnicode_FromUnicode(NULL, size)`` 和 "
3337+ "``PyUnicode_FromStringAndSize(NULL, size)`` 会引发 ``DeprecationWarning``。 请利用 "
3338+ ":c:func:`PyUnicode_New` 获得不带初始数据的 Unicode 对象。(由 Inada Naoki 贡献于 "
3339+ ":issue:`36346` )"
33393340
33403341#: ../../whatsnew/3.10.rst:2069
33413342msgid ""
33423343"The private ``_PyUnicode_Name_CAPI`` structure of the PyCapsule API "
33433344"``unicodedata.ucnhash_CAPI`` has been moved to the internal C API. "
33443345"(Contributed by Victor Stinner in :issue:`42157`.)"
33453346msgstr ""
3346- "私有的 ``_PyUnicode_Name_CAPI`` 结构体 (PyCapsule API "
3347- "``unicodedata.ucnhash_CAPI``) 已被移到内部 C API。 (由 Victor Stinner 在 "
3348- ":issue:`42157` 中贡献。)"
3347+ "私有结构体 ``_PyUnicode_Name_CAPI`` (PyCapsule API ``unicodedata.ucnhash_CAPI`` "
3348+ ")已被移入内部 C API。(由 Victor Stinner 贡献于 :issue:`42157` )"
33493349
33503350#: ../../whatsnew/3.10.rst:2073
33513351msgid ""
@@ -3357,12 +3357,12 @@ msgid ""
33573357":ref:`Python Path Configuration. <init-path-config>`. (Contributed by "
33583358"Victor Stinner in :issue:`42260`.)"
33593359msgstr ""
3360- "现在 :c:func:`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix `,"
3361- " :c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` 和 "
3362- ":c:func:`Py_GetProgramName` 当在 :c:func:`Py_Initialize` 之前被调用(在 Python "
3363- "被初始化之前)时将返回 ``NULL``。 请使用新的 :ref:`Python 初始化配置 API <init-config>` 来获取 "
3364- ":ref:`Python 路径配置。 <init-path-config>`。 (由 Victor Stinner 在 :issue:`42260` "
3365- "中贡献。 )"
3360+ "现在,若是在 :c:func:`Py_Initialize` 之前去调用(在 Python 被初始化之前), :c:func:`Py_GetPath `,"
3361+ " :c:func:`Py_GetPrefix` 、 :c:func:`Py_GetExecPrefix` 、 "
3362+ ":c:func:`Py_GetProgramFullPath` 、 :c:func:`Py_GetPythonHome` 和 "
3363+ ":c:func:`Py_GetProgramName` 将返回 ``NULL``。 请用新的 :ref:`Python 初始化配置 API <init-"
3364+ "config>` 来获取 :ref:`Python 路径配置 <init-path-config>`。(由 Victor Stinner 贡献于 "
3365+ ":issue:`42260` )"
33663366
33673367#: ../../whatsnew/3.10.rst:2081
33683368msgid ""
@@ -3373,11 +3373,11 @@ msgid ""
33733373"(PyList_SET_ITEM (a, b, c) < 0) ...`` test. (Contributed by Zackery Spytz "
33743374"and Victor Stinner in :issue:`30459`.)"
33753375msgstr ""
3376- ":c:func:`PyList_SET_ITEM`, :c:func:`PyTuple_SET_ITEM` 和 :c:func:`PyCell_SET` "
3377- " 宏不可再被用作 l 值或 r 值。 例如,``x = PyList_SET_ITEM(a, b, c)`` 和 "
3378- "``PyList_SET_ITEM(a, b, c) = x`` 现在会失败并提示编译器错误。 它可以防止 ``if (PyList_SET_ITEM "
3379- "(a, b, c) < 0) ...`` 检测之类的问题。 (由 Zackery Spytz 和 Victor Stinner 在 "
3380- ":issue:`30459` 中贡献。 )"
3376+ "宏 :c:func:`PyList_SET_ITEM` 、 :c:func:`PyTuple_SET_ITEM` 和 "
3377+ ":c:func:`PyCell_SET` 不可再用作左值或右值。 例如,现在 ``x = PyList_SET_ITEM(a, b, c)`` 和 "
3378+ "``PyList_SET_ITEM(a, b, c) = x`` 会失败并提示编译器错误。 这可以防止 ``if (PyList_SET_ITEM "
3379+ "(a, b, c) < 0) ...`` 之类的检测发生问题。 (由 Zackery Spytz 和 Victor Stinner 贡献于 "
3380+ ":issue:`30459` )"
33813381
33823382#: ../../whatsnew/3.10.rst:2088
33833383msgid ""
@@ -3389,11 +3389,11 @@ msgid ""
33893389"been included directly, consider including ``Python.h`` instead. "
33903390"(Contributed by Nicholas Sim in :issue:`35134`)"
33913391msgstr ""
3392- "非受限 API 文件 ``odictobject.h``, ``parser_interface.h``, ``picklebufobject.h``, "
3393- " ``pyarena .h``, ``pyctype.h``, ``pydebug .h``, ``pyfpe .h``, 和 ``pytime .h`` "
3394- "已被移至 ``Include/cpython `` 目录。 这些文件不可被直接包括,因为它们已经在``Python .h`` 中被包括了: "
3395- ":ref:`Include 文件 <api-includes>`。 如果它们已被直接包括,请考虑改为包括 ``Python.h``。 (由 "
3396- "Nicholas Sim 在 :issue:`35134` 中贡献。 )"
3392+ "非受限 API 文件 ``odictobject.h`` 、 ``parser_interface.h`` 、 "
3393+ "``picklebufobject .h`` 、 ``pyarena .h`` 、 ``pyctype .h``、 ``pydebug .h``、 "
3394+ "``pyfpe.h `` 和 ``pytime .h`` 已被移至 ``Include/cpython`` 目录。这些文件不能被直接包含,因为 "
3395+ "``Python.h`` 中已包含过了: :ref:`Include 文件 <api-includes>`。 如果已被直接包含,请考虑改为包含 "
3396+ "``Python.h``。(由 Nicholas Sim 贡献于 :issue:`35134` )"
33973397
33983398#: ../../whatsnew/3.10.rst:2096
33993399msgid ""
@@ -3403,28 +3403,28 @@ msgid ""
34033403"is set instead. (Contributed by Victor Stinner and Erlend E. Aasland in "
34043404":issue:`43908`.)"
34053405msgstr ""
3406- "请使用 :c:data:`Py_TPFLAGS_IMMUTABLETYPE` 类型旗标来创建不可变对象 。 不要依赖 "
3406+ "请用 :c:data:`Py_TPFLAGS_IMMUTABLETYPE` 类型标记来创建不可变对象 。 不要依赖 "
34073407":c:data:`Py_TPFLAGS_HEAPTYPE` 来确定类型对象是否可变;请改为检查是否设置了 "
3408- ":c:data:`Py_TPFLAGS_IMMUTABLETYPE`。 (由 Victor Stinner 和 Erlend E. Aasland 在 "
3409- ":issue:`43908` 中贡献。 )"
3408+ ":c:data:`Py_TPFLAGS_IMMUTABLETYPE`。(由 Victor Stinner 和 Erlend E. Aasland 贡献于 "
3409+ " :issue:`43908` )"
34103410
34113411#: ../../whatsnew/3.10.rst:2102
34123412msgid ""
34133413"The undocumented function ``Py_FrozenMain`` has been removed from the "
34143414"limited API. The function is mainly useful for custom builds of Python. "
34153415"(Contributed by Petr Viktorin in :issue:`26241`)"
34163416msgstr ""
3417- "未记入文档的函数 ``Py_FrozenMain`` 已从受限 API 中被移除。 此函数主要适用于 Python 的定制编译版。 (由 Petr "
3418- "Viktorin 在 :issue:`26241` 中贡献 )"
3417+ "未记入文档的函数 ``Py_FrozenMain`` 已从受限 API 中移除。该函数主要适用于 Python 的定制版。 (由 Petr "
3418+ "Viktorin 贡献于 :issue:`26241` )"
34193419
34203420#: ../../whatsnew/3.10.rst:2109
34213421msgid ""
34223422"The ``PyUnicode_InternImmortal()`` function is now deprecated and will be "
34233423"removed in Python 3.12: use :c:func:`PyUnicode_InternInPlace` instead. "
34243424"(Contributed by Victor Stinner in :issue:`41692`.)"
34253425msgstr ""
3426- "现在 ``PyUnicode_InternImmortal()`` 函数已被弃用并将在 Python 3.12 中移除:请改用 "
3427- ":c:func:`PyUnicode_InternInPlace`。 (由 Victor Stinner 在 :issue:`41692` 中贡献。 )"
3426+ "现在 ``PyUnicode_InternImmortal()`` 函数已被弃用,并将在 Python 3.12 中移除:请改用 "
3427+ ":c:func:`PyUnicode_InternInPlace`。(由 Victor Stinner 贡献于 :issue:`41692` )"
34283428
34293429#: ../../whatsnew/3.10.rst:2117
34303430msgid ""
@@ -3527,9 +3527,9 @@ msgid ""
35273527":c:member:`PyConfig.install_signal_handlers`. (Contributed by Victor Stinner"
35283528" in :issue:`41713`.)"
35293529msgstr ""
3530- "移除了未记入文档的 ``PyOS_InitInterrupts()`` 函数。 初始化 Python 已经会隐式地安装信号处理句柄 :参见 "
3531- ":c:member:`PyConfig.install_signal_handlers`。 (由 Victor Stinner 在 "
3532- ":issue:`41713` 中贡献。 )"
3530+ "移除了未记入文档的 ``PyOS_InitInterrupts()`` 函数。Python 初始化时已隐式安装了信号处理 handler :参见 "
3531+ ":c:member:`PyConfig.install_signal_handlers`。(由 Victor Stinner 贡献于 "
3532+ ":issue:`41713` )"
35333533
35343534#: ../../whatsnew/3.10.rst:2155
35353535msgid ""
@@ -3538,8 +3538,8 @@ msgid ""
35383538"already excluded from the limited C API (:pep:`384`). (Contributed by Victor"
35393539" Stinner in :issue:`43244`.)"
35403540msgstr ""
3541- "移除了 ``PyAST_Validate()`` 函数。 已不再可能使用公有 C API 来构建 AST 对象 ( ``mod_ty`` 类型)。 "
3542- "该函数已被排除于受限的 C API 之外 ( :pep:`384`)。 (由 Victor Stinner 在 :issue:`43244` 中贡献。 )"
3541+ "移除了 ``PyAST_Validate()`` 函数。不能再使用公有 C API 来构建 AST 对象( ``mod_ty`` "
3542+ "类型)了。该函数已不属于受限 C API( :pep:`384` )。 (由 Victor Stinner 贡献于 :issue:`43244` )"
35433543
35443544#: ../../whatsnew/3.10.rst:2160
35453545msgid "Remove the ``symtable.h`` header file and the undocumented functions:"
@@ -3575,8 +3575,7 @@ msgid ""
35753575"it could not be used, because the ``symtable.h`` header file was excluded "
35763576"from the limited C API."
35773577msgstr ""
3578- "``Py_SymtableString()`` 函数是被错误地作为稳定 ABI 的一部分,但它无法被使用,因为 ``symtable.h`` "
3579- "头文件被排除于受限的 C API 之外。"
3578+ "``Py_SymtableString()`` 函数误为稳定版 ABI 却无法使用,因为 ``symtable.h`` 头文件不属于受限 C API。"
35803579
35813580#: ../../whatsnew/3.10.rst:2173
35823581msgid ""
@@ -3592,9 +3591,9 @@ msgid ""
35923591"Windows. Since the function takes a ``FILE*`` argument, its ABI stability "
35933592"cannot be guaranteed. (Contributed by Petr Viktorin in :issue:`43868`.)"
35943593msgstr ""
3595- "将 :c:func:`PyOS_ReadlineFunctionPointer` 从受限的 C API 头文件和 ``python3.dll`` "
3596- "中移除,这是在 Windows 上提供稳定 ABI 的库。 由于该函数接受一个 ``FILE*`` 参数,因此其 ABI 稳定性无法得到保证。 (由 "
3597- "Petr Viktorin 在 :issue:`43868` 中贡献。 )"
3594+ ":c:func:`PyOS_ReadlineFunctionPointer` 已从受限 C API 头文件和 ``python3.dll`` 中移除,此 "
3595+ " dll 为 Windows 中的稳定版 ABI 库。由于该函数可接受一个 ``FILE*`` 参数,所以无法保证其 ABI 稳定性。(由 Petr "
3596+ "Viktorin 贡献于 :issue:`43868` )"
35983597
35993598#: ../../whatsnew/3.10.rst:2182
36003599msgid ""
@@ -3606,16 +3605,16 @@ msgid ""
36063605"``<winbase.h>`` header. Use the Python :mod:`ast` module instead. "
36073606"(Contributed by Victor Stinner in :issue:`43244`.)"
36083607msgstr ""
3609- "移除了 ``ast.h``, ``asdl.h`` 和 ``Python-ast.h`` 头文件。 这些函数未被写入文档并被排除于受限的 C API "
3610- "之外。 这些头文件中定义的大多数名称都没有 ``Py`` 前缀因此可能造成名称冲突。 例如, ``Python-ast.h`` 定义了一个 "
3611- "``Yield`` 宏,它会与另一个 ``Yield `` 名称产生冲突,这个名称是由 Windows ``<winbase.h> `` 头文件所使用的。 "
3612- "请改用 Python :mod:`ast` 模块。 (由 Victor Stinner 在 :issue:`43244` 中贡献。 )"
3608+ "移除了 ``ast.h``, ``asdl.h`` 和 ``Python-ast.h`` 头文件。 这些函数未入文档且不属于受限 C "
3609+ "API。这些头文件中定义的大多数名称都不带 ``Py`` 前缀,因此可能会造成命名冲突。比如 ``Python-ast.h`` 定义了一个 "
3610+ "``Yield`` 宏,就会与另一个Windows ``<winbase.h> `` 头文件中的 ``Yield `` 冲突。请改用 Python "
3611+ ":mod:`ast` 模块。(由 Victor Stinner 贡献于 :issue:`43244` )"
36133612
36143613#: ../../whatsnew/3.10.rst:2190
36153614msgid ""
36163615"Remove the compiler and parser functions using ``struct _mod`` type, because"
36173616" the public AST C API was removed:"
3618- msgstr "移除了使用 ``struct _mod`` 类型的编译器和解析器函数,因为公共的 AST C API 已经被移除: "
3617+ msgstr "移除了用到 ``struct _mod`` 类型的编译器和解析器函数,因为公共的 AST C API 已被移除: "
36193618
36203619#: ../../whatsnew/3.10.rst:2193
36213620msgid "``PyAST_Compile()``"
@@ -3661,11 +3660,11 @@ msgstr "``PyParser_ASTFromStringObject()``"
36613660msgid ""
36623661"These functions were undocumented and excluded from the limited C API. "
36633662"(Contributed by Victor Stinner in :issue:`43244`.)"
3664- msgstr "这些函数未被写入文档并被排除于受限的 C API 之外 。(由 Victor Stinner 在 :issue:`43244` 中贡献。 )"
3663+ msgstr "这些函数未入文档且不属于受限 C API。(由 Victor Stinner 贡献于 :issue:`43244` )"
36653664
36663665#: ../../whatsnew/3.10.rst:2207
36673666msgid "Remove the ``pyarena.h`` header file with functions:"
3668- msgstr "移除包含下列函数的 ``pyarena.h`` 头文件: "
3667+ msgstr "移除了包含下列函数的头文件 ``pyarena.h`` : "
36693668
36703669#: ../../whatsnew/3.10.rst:2209
36713670msgid "``PyArena_New()``"
@@ -3689,5 +3688,4 @@ msgid ""
36893688" only used internally by the compiler. (Contributed by Victor Stinner in "
36903689":issue:`43244`.)"
36913690msgstr ""
3692- "这些函数未被写入文档,被排除于受限的 C API 之外,并仅由编译器在内部使用。 (由 Victor Stinner 在 :issue:`43244` "
3693- "中贡献。)"
3691+ "这些函数未记入文档,且不属于受限 C API,仅由编译器内部使用。(由 Victor Stinner 贡献于 :issue:`43244` )"
0 commit comments