Skip to content

Commit 3a9b0ab

Browse files
[po] auto sync
1 parent 3bfe59e commit 3a9b0ab

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.28%", "updated_at": "2025-04-08T07:55:26Z"}
1+
{"translation": "81.29%", "updated_at": "2025-04-08T15:55:59Z"}

whatsnew/3.13.po

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4888,6 +4888,11 @@ msgid ""
48884888
"can be used to use these functions with Python 3.11 and 3.12. (Contributed "
48894889
"by Victor Stinner in :gh:`107073`.)"
48904890
msgstr ""
4891+
"增加了 :c:func:`PyObject_VisitManagedDict` 和 "
4892+
":c:func:`PyObject_ClearManagedDict` 函数。 它们必须由一个使用 "
4893+
":c:macro:`Py_TPFLAGS_MANAGED_DICT` 旗标的类型的遍历和清理函数来调用。 `pythoncapi-compat "
4894+
"project`_ 可被用于在 Python 3.11 和 3.12 中使用这些函数。 (由 Victor Stinner 在 :gh:`107073`"
4895+
" 中贡献。)"
48914896

48924897
#: ../../whatsnew/3.13.rst:2205
48934898
msgid ""
@@ -4896,13 +4901,18 @@ msgid ""
48964901
" way that the :mod:`tracemalloc` module does. (Contributed by Pablo Galindo "
48974902
"in :gh:`93502`.)"
48984903
msgstr ""
4904+
"增加了 :c:func:`PyRefTracer_SetTracer` 和 :c:func:`PyRefTracer_GetTracer` "
4905+
"函数,它们会以与 :mod:`tracemalloc` 模块相同的方式启用对象创建和销毁的追踪。 (由 Pablo Galindo 在 "
4906+
":gh:`93502` 中贡献。)"
48994907

49004908
#: ../../whatsnew/3.13.rst:2211
49014909
msgid ""
49024910
"Add the :c:func:`PySys_AuditTuple` function as an alternative to "
49034911
":c:func:`PySys_Audit` that takes event arguments as a Python :class:`tuple` "
49044912
"object. (Contributed by Victor Stinner in :gh:`85283`.)"
49054913
msgstr ""
4914+
"增加 :c:func:`PySys_AuditTuple` 函数作为 :c:func:`PySys_Audit` 的替代,它将接受一个 Python "
4915+
":class:`tuple` 对象作为事件参数。 (由 Victor Stinner 在 :gh:`85283` 中贡献。)"
49064916

49074917
#: ../../whatsnew/3.13.rst:2216
49084918
msgid ""
@@ -4911,6 +4921,9 @@ msgid ""
49114921
"error if it is ``NULL``. The caller is responsible for checking if the "
49124922
"result is ``NULL``. (Contributed by Victor Stinner in :gh:`108867`.)"
49134923
msgstr ""
4924+
"增加 :c:func:`PyThreadState_GetUnchecked()` 函数作为 :c:func:`PyThreadState_Get()`"
4925+
" 的替代,它在结果为 ``NULL`` 时不会杀死进程并报告致命错误。 调用方要负责检查结果是否为 ``NULL``。 (由 Victor "
4926+
"Stinner 在 :gh:`108867` 中贡献。).)"
49144927

49154928
#: ../../whatsnew/3.13.rst:2222
49164929
msgid ""
@@ -4920,6 +4933,9 @@ msgid ""
49204933
"``'builtins'`` or ``'__main__'``. (Contributed by Victor Stinner in "
49214934
":gh:`111696`.)"
49224935
msgstr ""
4936+
"增加 :c:func:`PyType_GetFullyQualifiedName` 函数用来获取类型的完整限定名称。 如果 "
4937+
":attr:`type.__module__` 是一个字符串且不等于 ``'builtins'`` 或 ``'__main__'`` "
4938+
"则会在开头添加模块名称。 (由 Victor Stinner 在 :gh:`111696` 中贡献。)"
49234939

49244940
#: ../../whatsnew/3.13.rst:2228
49254941
msgid ""
@@ -5010,19 +5026,31 @@ msgid ""
50105026
":c:macro:`PY_CXX_CONST` macro. (Contributed by Serhiy Storchaka in "
50115027
":gh:`65210`.)"
50125028
msgstr ""
5029+
"现在 :c:func:`PyArg_ParseTupleAndKeywords` 和 "
5030+
":c:func:`PyArg_VaParseTupleAndKeywords` 的 *keywords* 形参类型在 C 中为 "
5031+
":c:expr:`char * const *` 而在 C++ 中为 :c:expr:`const char * const *`,而不是 "
5032+
":c:expr:`char **`。 在 C++ 中,这将使这些函数与类型为 :c:expr:`const char * const *`, "
5033+
":c:expr:`const char **` 或 :c:expr:`char * const *` 的参数保持兼容而不必使用显式的类型转换。 在 C "
5034+
"中,这些函数仅支持类型为 :c:expr:`char * const *` 的参数。 这可以通过 :c:macro:`PY_CXX_CONST` "
5035+
"宏来覆盖。 (由 Serhiy Storchaka 在 :gh:`65210` 中贡献。).)"
50135036

50145037
#: ../../whatsnew/3.13.rst:2276
50155038
msgid ""
50165039
":c:func:`PyArg_ParseTupleAndKeywords` now supports non-ASCII keyword "
50175040
"parameter names. (Contributed by Serhiy Storchaka in :gh:`110815`.)"
50185041
msgstr ""
5042+
"现在 :c:func:`PyArg_ParseTupleAndKeywords` 支持非 ASCII 关键字形参名称。 (由 Serhiy "
5043+
"Storchaka 在 :gh:`110815` 中贡献。)"
50195044

50205045
#: ../../whatsnew/3.13.rst:2280
50215046
msgid ""
50225047
"The :c:func:`!PyCode_GetFirstFree` function is now unstable API and is now "
50235048
"named :c:func:`PyUnstable_Code_GetFirstFree`. (Contributed by Bogdan "
50245049
"Romanyuk in :gh:`115781`.)"
50255050
msgstr ""
5051+
"现在 :c:func:`!PyCode_GetFirstFree` 函数属于非稳定 API 并被命名为 "
5052+
":c:func:`PyUnstable_Code_GetFirstFree`。 (由 Bogdan Romanyuk 在 :gh:`115781` "
5053+
"中贡献。)"
50265054

50275055
#: ../../whatsnew/3.13.rst:2284
50285056
msgid ""
@@ -5035,6 +5063,12 @@ msgid ""
50355063
"recommended in the documentation. (Contributed by Serhiy Storchaka in "
50365064
":gh:`106672`.)"
50375065
msgstr ""
5066+
"现在当调用 :c:func:`PyDict_GetItem`, :c:func:`PyDict_GetItemString`, "
5067+
":c:func:`PyMapping_HasKey`, :c:func:`PyMapping_HasKeyString`, "
5068+
":c:func:`PyObject_HasAttr`, :c:func:`PyObject_HasAttrString` 和 "
5069+
":c:func:`PySys_GetObject` 等函数时如果使用 :func:`sys.unraisablehook` "
5070+
"报告这些错误它们将清空所有已发生的错误。 你可以用本文档中推荐的其他函数来替换它们。 (由 Serhiy Storchaka 在 "
5071+
":gh:`106672` 中贡献。)"
50385072

50395073
#: ../../whatsnew/3.13.rst:2293
50405074
msgid ""
@@ -5153,6 +5187,9 @@ msgid ""
51535187
"to request a public C API and add ``cc: @vstinner`` to the issue to notify "
51545188
"Victor Stinner. (Contributed by Victor Stinner in :gh:`106320`.)"
51555189
msgstr ""
5190+
"移除了一些名称带有 ``_Py`` 或 ``_PY`` 前缀(即被视为私有)的函数、宏和变量。 如果你的项目受到了此项修改的影响并且你认为这些被移除的 "
5191+
"API 应当保持可用,请 :ref:`发起一个新事项 <using-the-tracker>` 以请求提供公有 C API 并向该事项添加 ``cc: "
5192+
"@vstinner`` 来通知 Victor Stinner。 (由 Victor Stinner 在 :gh:`106320` 中贡献。)"
51565193

51575194
#: ../../whatsnew/3.13.rst:2348
51585195
msgid ""
@@ -6159,6 +6196,9 @@ msgid ""
61596196
"also the ``HAVE_IEEEFP_H`` macro. (Contributed by Victor Stinner in "
61606197
":gh:`108765`.)"
61616198
msgstr ""
6199+
"``Python.h`` 不再包括 ``<ieeefp.h>`` 标准头文件。 它曾经为了 :c:func:`!finite` "
6200+
"函数被包括,该函数现在是由 ``<math.h>`` 头文件提供的。 现在如有必要应当显式地包括它。 此外还移除了 ``HAVE_IEEEFP_H`` "
6201+
"宏。 (由 Victor Stinner 在 :gh:`108765` 中贡献。)"
61626202

61636203
#: ../../whatsnew/3.13.rst:2685
61646204
msgid ""

0 commit comments

Comments
 (0)