Skip to content

Commit 9368e3c

Browse files
[po] auto sync
1 parent ab34d43 commit 9368e3c

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.30%", "updated_at": "2025-04-09T07:55:44Z"}
1+
{"translation": "81.31%", "updated_at": "2025-04-09T08:57:48Z"}

whatsnew/3.13.po

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6211,7 +6211,7 @@ msgid ""
62116211
"functions. (Contributed by Victor Stinner in :gh:`108765`.)"
62126212
msgstr ""
62136213
"``Python.h`` 不再包括这些标准头文件: ``<time.h>``, ``<sys/select.h>`` 和 "
6214-
"``<sys/time.h>``。 如果需要,它们应当显式地被包括。 例如,``<time.h>`` 提供 :c:func:`!clock` 和 "
6214+
"``<sys/time.h>``。 如果需要,它们应当被显式地包括。 例如,``<time.h>`` 提供 :c:func:`!clock` 和 "
62156215
":c:func:`!gmtime` 函数,``<sys/select.h>`` 提供 :c:func:`!select` 函数,而 "
62166216
"``<sys/time.h>`` 提供 the :c:func:`!futimes`, :c:func:`!gettimeofday` 和 "
62176217
":c:func:`!setitimer` 函数。 (由 Victor Stinner 在 :gh:`108765` 中贡献。)"
@@ -6225,6 +6225,10 @@ msgid ""
62256225
"platforms, the ``HAVE_STDDEF_H`` macro is only defined on Windows. "
62266226
"(Contributed by Victor Stinner in :gh:`108765`.)"
62276227
msgstr ""
6228+
"在 Windows 上,``Python.h`` 不再包括 ``<stddef.h>`` 标准头文件。 如果需要,它应当被显式地包括。 例如,它提供 "
6229+
":c:func:`!offsetof` 函数,以及 ``size_t`` 和 ``ptrdiff_t`` 类型。 显式地包括 "
6230+
"``<stddef.h>`` 在所有其他平台都已经是必须的,``HAVE_STDDEF_H`` 宏仅在 Windows 上被定义。 (由 Victor "
6231+
"Stinner 在 :gh:`108765` 中贡献。)"
62286232

62296233
#: ../../whatsnew/3.13.rst:2700
62306234
msgid ""
@@ -6233,13 +6237,18 @@ msgid ""
62336237
":c:macro:`!Py_BUILD_CORE_MODULE` macros are now undefined by ``<Python.h>``."
62346238
" (Contributed by Victor Stinner in :gh:`85283`.)"
62356239
msgstr ""
6240+
"如果 :c:macro:`Py_LIMITED_API` 宏已被定义,则 :c:macro:`!Py_BUILD_CORE`, "
6241+
":c:macro:`!Py_BUILD_CORE_BUILTIN` 和 :c:macro:`!Py_BUILD_CORE_MODULE` 宏现在会被 "
6242+
"``<Python.h>`` 撤销定义。 (由 Victor Stinner 在 :gh:`85283` 中贡献。)"
62366243

62376244
#: ../../whatsnew/3.13.rst:2705
62386245
msgid ""
62396246
"The old trashcan macros ``Py_TRASHCAN_SAFE_BEGIN`` and "
62406247
"``Py_TRASHCAN_SAFE_END`` were removed. They should be replaced by the new "
62416248
"macros ``Py_TRASHCAN_BEGIN`` and ``Py_TRASHCAN_END``."
62426249
msgstr ""
6250+
"旧的 trashcan 宏 ``Py_TRASHCAN_SAFE_BEGIN`` 和 ``Py_TRASHCAN_SAFE_END`` 已被移除。 "
6251+
"它们应该被替换为新的宏 ``Py_TRASHCAN_BEGIN`` 和 ``Py_TRASHCAN_END``。"
62436252

62446253
#: ../../whatsnew/3.13.rst:2709
62456254
msgid "A ``tp_dealloc`` function that has the old macros, such as::"
@@ -6296,12 +6305,14 @@ msgid ""
62966305
"the old macros were deprecated in Python 3.11. (Contributed by Irit Katriel "
62976306
"in :gh:`105111`.)"
62986307
msgstr ""
6308+
"请注意 ``Py_TRASHCAN_BEGIN`` 具有第二个参数,其值应为它所在的析构函数。 这些新宏是在 Python 3.8 中添加而旧的宏是在 "
6309+
"Python 3.11 中弃用的。 (由 Irit Katriel 在 :gh:`105111` 中贡献。)"
62996310

63006311
#: ../../whatsnew/3.13.rst:2738
63016312
msgid ""
63026313
":ref:`PEP 667 <whatsnew313-locals-semantics>` introduces several changes to "
63036314
"frame-related functions:"
6304-
msgstr ""
6315+
msgstr ":ref:`PEP 667 <whatsnew313-locals-semantics>` 引入了对帧相关函数的多项更改:"
63056316

63066317
#: ../../whatsnew/3.13.rst:2741
63076318
msgid ""
@@ -6326,20 +6337,27 @@ msgid ""
63266337
" (e.g. with :c:func:`PyDict_Copy`), or by calling the new "
63276338
":c:func:`PyEval_GetFrameLocals` API."
63286339
msgstr ""
6340+
"在 :term:`optimized scope` 中调用 :c:func:`PyFrame_GetLocals` "
6341+
"现在将返回一个直通写入代理而不是一个在不明确的时刻更新的快照。 如果需要快照,必须显式地创建它 (例如使用 "
6342+
":c:func:`PyDict_Copy`),或是通过调用新的 :c:func:`PyEval_GetFrameLocals` API。"
63296343

63306344
#: ../../whatsnew/3.13.rst:2761
63316345
msgid ""
63326346
":c:func:`!PyFrame_FastToLocals` and :c:func:`!PyFrame_FastToLocalsWithError`"
63336347
" no longer have any effect. Calling these functions has been redundant since"
63346348
" Python 3.11, when :c:func:`PyFrame_GetLocals` was first introduced."
63356349
msgstr ""
6350+
":c:func:`!PyFrame_FastToLocals` 和 :c:func:`!PyFrame_FastToLocalsWithError` "
6351+
"将不再有任何效果。 自 Python 3.11 起调用这些函数是多余的,因为该版本首次引入了 :c:func:`PyFrame_GetLocals`。"
63366352

63376353
#: ../../whatsnew/3.13.rst:2766
63386354
msgid ""
63396355
":c:func:`!PyFrame_LocalsToFast` no longer has any effect. Calling this "
63406356
"function is redundant now that :c:func:`PyFrame_GetLocals` returns a write-"
63416357
"through proxy for :term:`optimized scopes <optimized scope>`."
63426358
msgstr ""
6359+
":c:func:`!PyFrame_LocalsToFast` 将不再有任何效果。 现在调用此函数是多余的因为 "
6360+
":c:func:`PyFrame_GetLocals` 将为 :term:`已优化作用域 <optimized scope>` 返回一个直通写入代理。"
63436361

63446362
#: ../../whatsnew/3.13.rst:2770
63456363
msgid ""

0 commit comments

Comments
 (0)