@@ -6211,7 +6211,7 @@ msgid ""
6211
6211
"functions. (Contributed by Victor Stinner in :gh:`108765`.)"
6212
6212
msgstr ""
6213
6213
"``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` 和 "
6215
6215
":c:func:`!gmtime` 函数,``<sys/select.h>`` 提供 :c:func:`!select` 函数,而 "
6216
6216
"``<sys/time.h>`` 提供 the :c:func:`!futimes`, :c:func:`!gettimeofday` 和 "
6217
6217
":c:func:`!setitimer` 函数。 (由 Victor Stinner 在 :gh:`108765` 中贡献。)"
@@ -6225,6 +6225,10 @@ msgid ""
6225
6225
"platforms, the ``HAVE_STDDEF_H`` macro is only defined on Windows. "
6226
6226
"(Contributed by Victor Stinner in :gh:`108765`.)"
6227
6227
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` 中贡献。)"
6228
6232
6229
6233
#: ../../whatsnew/3.13.rst:2700
6230
6234
msgid ""
@@ -6233,13 +6237,18 @@ msgid ""
6233
6237
":c:macro:`!Py_BUILD_CORE_MODULE` macros are now undefined by ``<Python.h>``."
6234
6238
" (Contributed by Victor Stinner in :gh:`85283`.)"
6235
6239
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` 中贡献。)"
6236
6243
6237
6244
#: ../../whatsnew/3.13.rst:2705
6238
6245
msgid ""
6239
6246
"The old trashcan macros ``Py_TRASHCAN_SAFE_BEGIN`` and "
6240
6247
"``Py_TRASHCAN_SAFE_END`` were removed. They should be replaced by the new "
6241
6248
"macros ``Py_TRASHCAN_BEGIN`` and ``Py_TRASHCAN_END``."
6242
6249
msgstr ""
6250
+ "旧的 trashcan 宏 ``Py_TRASHCAN_SAFE_BEGIN`` 和 ``Py_TRASHCAN_SAFE_END`` 已被移除。 "
6251
+ "它们应该被替换为新的宏 ``Py_TRASHCAN_BEGIN`` 和 ``Py_TRASHCAN_END``。"
6243
6252
6244
6253
#: ../../whatsnew/3.13.rst:2709
6245
6254
msgid "A ``tp_dealloc`` function that has the old macros, such as::"
@@ -6296,12 +6305,14 @@ msgid ""
6296
6305
"the old macros were deprecated in Python 3.11. (Contributed by Irit Katriel "
6297
6306
"in :gh:`105111`.)"
6298
6307
msgstr ""
6308
+ "请注意 ``Py_TRASHCAN_BEGIN`` 具有第二个参数,其值应为它所在的析构函数。 这些新宏是在 Python 3.8 中添加而旧的宏是在 "
6309
+ "Python 3.11 中弃用的。 (由 Irit Katriel 在 :gh:`105111` 中贡献。)"
6299
6310
6300
6311
#: ../../whatsnew/3.13.rst:2738
6301
6312
msgid ""
6302
6313
":ref:`PEP 667 <whatsnew313-locals-semantics>` introduces several changes to "
6303
6314
"frame-related functions:"
6304
- msgstr ""
6315
+ msgstr ":ref:`PEP 667 <whatsnew313-locals-semantics>` 引入了对帧相关函数的多项更改: "
6305
6316
6306
6317
#: ../../whatsnew/3.13.rst:2741
6307
6318
msgid ""
@@ -6326,20 +6337,27 @@ msgid ""
6326
6337
" (e.g. with :c:func:`PyDict_Copy`), or by calling the new "
6327
6338
":c:func:`PyEval_GetFrameLocals` API."
6328
6339
msgstr ""
6340
+ "在 :term:`optimized scope` 中调用 :c:func:`PyFrame_GetLocals` "
6341
+ "现在将返回一个直通写入代理而不是一个在不明确的时刻更新的快照。 如果需要快照,必须显式地创建它 (例如使用 "
6342
+ ":c:func:`PyDict_Copy`),或是通过调用新的 :c:func:`PyEval_GetFrameLocals` API。"
6329
6343
6330
6344
#: ../../whatsnew/3.13.rst:2761
6331
6345
msgid ""
6332
6346
":c:func:`!PyFrame_FastToLocals` and :c:func:`!PyFrame_FastToLocalsWithError`"
6333
6347
" no longer have any effect. Calling these functions has been redundant since"
6334
6348
" Python 3.11, when :c:func:`PyFrame_GetLocals` was first introduced."
6335
6349
msgstr ""
6350
+ ":c:func:`!PyFrame_FastToLocals` 和 :c:func:`!PyFrame_FastToLocalsWithError` "
6351
+ "将不再有任何效果。 自 Python 3.11 起调用这些函数是多余的,因为该版本首次引入了 :c:func:`PyFrame_GetLocals`。"
6336
6352
6337
6353
#: ../../whatsnew/3.13.rst:2766
6338
6354
msgid ""
6339
6355
":c:func:`!PyFrame_LocalsToFast` no longer has any effect. Calling this "
6340
6356
"function is redundant now that :c:func:`PyFrame_GetLocals` returns a write-"
6341
6357
"through proxy for :term:`optimized scopes <optimized scope>`."
6342
6358
msgstr ""
6359
+ ":c:func:`!PyFrame_LocalsToFast` 将不再有任何效果。 现在调用此函数是多余的因为 "
6360
+ ":c:func:`PyFrame_GetLocals` 将为 :term:`已优化作用域 <optimized scope>` 返回一个直通写入代理。"
6343
6361
6344
6362
#: ../../whatsnew/3.13.rst:2770
6345
6363
msgid ""
0 commit comments