Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fbeb93

Browse files
[po] auto sync
1 parent 3b7503c commit 1fbeb93

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

whatsnew/3.10.po

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3232,20 +3232,20 @@ msgid ""
32323232
":c:type:`PyObject` structure is the same in release and debug mode since "
32333233
"Python 3.8 (see :issue:`36465`)."
32343234
msgstr ""
3235-
"现在受限的 C API 在 :ref:`Python 以调试模式构建 <debug-build>` 时也受到支持(如果定义了 ``Py_DEBUG`` "
3236-
"宏)。 在受限的 C API 中,现在实现了 :c:func:`Py_INCREF` 和 :c:func:`Py_DECREF` "
3237-
"函数作为不透明函数调用,而不是直接访问 :c:member:`PyObject.ob_refcnt` 成员,如果 Python 是以调试模式构建并且 "
3238-
"``Py_LIMITED_API`` 宏以 Python 3.10 或更新版本为目标的话。 在调试模式下支持受限的 C API 成为可能是因为自 "
3239-
"Python 3.8 起 :c:type:`PyObject` 结构体在发布模式和调试模式下是相同的 (参见 :issue:`36465`)。"
3235+
"现在,:ref:`Python 以调试模式编译 <debug-build>` 时也支持受限 C API 的使用了(需先定义 ``Py_DEBUG`` "
3236+
"宏)。在受限 C API 中,如果 Python 是以调试模式编译的,且 ``Py_LIMITED_API`` 宏以 Python 3.10 "
3237+
"以上版本为目标,那么现在 :c:func:`Py_INCREF` 和 :c:func:`Py_DECREF` 函数实现为非透明的函数调用,而非直接访问 "
3238+
":c:member:`PyObject.ob_refcnt` 成员。在调试模式下支持受限 C API 成为可能,是因为自 Python 3.8 起 "
3239+
":c:type:`PyObject` 结构体在发布模式和调试模式下是相同的参见 :issue:`36465`。"
32403240

32413241
#: ../../whatsnew/3.10.rst:2013
32423242
msgid ""
32433243
"The limited C API is still not supported in the :option:`--with-trace-refs` "
32443244
"special build (``Py_TRACE_REFS`` macro). (Contributed by Victor Stinner in "
32453245
":issue:`43688`.)"
32463246
msgstr ""
3247-
"受限的 C API 在 :option:`--with-trace-refs` 特殊构建 (``Py_TRACE_REFS`` 宏) 中仍然不受支持。 "
3248-
"(由 Victor Stinner :issue:`43688` 中贡献。)"
3247+
"在 :option:`--with-trace-refs` 特殊编译方式下(``Py_TRACE_REFS`` 宏),仍不支持使用受限 C API "
3248+
"(由 Victor Stinner 贡献于 :issue:`43688` )"
32493249

32503250
#: ../../whatsnew/3.10.rst:2017
32513251
msgid ""
@@ -3256,10 +3256,10 @@ msgid ""
32563256
"singleton or the ``False`` singleton. (Contributed by Victor Stinner in "
32573257
":issue:`43753`.)"
32583258
msgstr ""
3259-
"增加了 :c:func:`Py_Is(x, y) <Py_Is>` 函数用于测试 *x* 对象是否是 *y*,等价于 Python 中的 ``x is "
3260-
"y``。 还增加了 :c:func:`Py_IsNone`, :c:func:`Py_IsTrue`, :c:func:`Py_IsFalse` "
3261-
"函数分别用于测试一个对象是否是 ``None`` 单例、``True`` 单例或 ``False`` 单例。 (由 Victor Stinner "
3262-
":issue:`43753` 中贡献。)"
3259+
"加入 :c:func:`Py_Is(x, y) <Py_Is>` 函数,用于测试 *x* 对象是否是 *y* 对象,等价于 Python 中的 ``x "
3260+
"is y``。还加入了 :c:func:`Py_IsNone`:c:func:`Py_IsTrue`:c:func:`Py_IsFalse`"
3261+
" 函数,分别用于测试某对象是否为 ``None`` 单例、``True`` 单例或 ``False`` 单例。(由 Victor Stinner 贡献于"
3262+
" :issue:`43753` )"
32633263

32643264
#: ../../whatsnew/3.10.rst:2024
32653265
msgid ""
@@ -3269,26 +3269,25 @@ msgid ""
32693269
"and query the state of the garbage collector from C code without having to "
32703270
"import the :mod:`gc` module."
32713271
msgstr ""
3272-
"新增了用于从 C 代码控制垃圾回收器的函数: :c:func:`PyGC_Enable()`, :c:func:`PyGC_Disable()`, "
3273-
":c:func:`PyGC_IsEnabled()`。 这些函数允许从 C 代码激活、取消激活和查询垃圾回收器的状态而不必导入 :mod:`gc` "
3274-
"模块。"
3272+
"新增由 C 代码控制垃圾回收器的函数: :c:func:`PyGC_Enable()`, 、:c:func:`PyGC_Disable()` 、 "
3273+
":c:func:`PyGC_IsEnabled()`。这些函数允许从 C 代码激活、停止和查询垃圾回收器的状态,而不必导入 :mod:`gc` 模块。"
32753274

32763275
#: ../../whatsnew/3.10.rst:2031
32773276
msgid ""
32783277
"Add a new :c:data:`Py_TPFLAGS_DISALLOW_INSTANTIATION` type flag to disallow "
32793278
"creating type instances. (Contributed by Victor Stinner in :issue:`43916`.)"
32803279
msgstr ""
3281-
"新增了 :c:data:`Py_TPFLAGS_DISALLOW_INSTANTIATION` 类型旗标用于禁止创建类型实例。 (由 Victor "
3282-
"Stinner :issue:`43916` 中贡献。)"
3280+
"新增 :c:data:`Py_TPFLAGS_DISALLOW_INSTANTIATION` 类型标记,用于禁止创建类型实例。(由 Victor "
3281+
"Stinner 贡献于 :issue:`43916` )"
32833282

32843283
#: ../../whatsnew/3.10.rst:2035
32853284
msgid ""
32863285
"Add a new :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag for creating "
32873286
"immutable type objects: type attributes cannot be set nor deleted. "
32883287
"(Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908`.)"
32893288
msgstr ""
3290-
"增加了新的 :c:data:`Py_TPFLAGS_IMMUTABLETYPE` 类型旗标用于创建不可变类型对象:类型属性不可被设置或删除。 (由 "
3291-
"Victor Stinner 和 Erlend E. Aasland :issue:`43908` 中贡献。)"
3289+
"新增 :c:data:`Py_TPFLAGS_IMMUTABLETYPE` 类型标记,用于创建不可变类型对象:类型的属性不可设置或删除。(由 "
3290+
"Victor Stinner 和 Erlend E. Aasland 贡献于 :issue:`43908` )"
32923291

32933292
#: ../../whatsnew/3.10.rst:2042
32943293
msgid ""

0 commit comments

Comments
 (0)