@@ -579,6 +579,12 @@ msgid ""
579579"Contributed by Pablo Galindo and Christian Heimes with contributions from "
580580"Gregory P. Smith [Google] and Mark Shannon in :gh:`96123`.)"
581581msgstr ""
582+ "通过新的环境变量 :envvar:`PYTHONPERFSUPPORT` 和命令行选项 :option:`-X perf <-X>` 以及新的 "
583+ ":func:`sys.activate_stack_trampoline`, "
584+ ":func:`sys.deactivate_stack_trampoline` 和 "
585+ ":func:`sys.is_stack_trampoline_active` 函数添加了对 :ref:`perf 性能分析器的支持 "
586+ "<perf_profiling>`。 (由 Pablo Galindo 设计。 由 Pablo Galindo 和 Christian Heimes 在"
587+ " :gh:`96123` 中贡献并包含来自 Gregory P. Smith [Google] 和 Mark Shannon 的帮助。)"
582588
583589#: ../../whatsnew/3.12.rst:474
584590msgid ""
@@ -589,6 +595,10 @@ msgid ""
589595" for details. In Python 3.14, the default will switch to ``'data'``. "
590596"(Contributed by Petr Viktorin in :pep:`706`.)"
591597msgstr ""
598+ ":mod:`tarfile` 中的提取方法和 :func:`shutil.unpack_archive` 有一个新的 *filter* "
599+ "参数,它允许限制可能令人惊讶或危险的 tar 功能,例如在目标目录之外创建文件。 相关细节请参阅 :ref:`tarfile 提取过滤器 "
600+ "<tarfile-extraction-filter>`。 在 Python 3.14 中。默认值将切换为 ``'data'``。 (由 Petr "
601+ "Viktorin 在 :pep:`706` 中贡献。)"
592602
593603#: ../../whatsnew/3.12.rst:482
594604msgid ""
@@ -646,6 +656,11 @@ msgid ""
646656":exc:`SyntaxError` will eventually be raised, instead of "
647657":exc:`SyntaxWarning`. (Contributed by Victor Stinner in :gh:`98401`.)"
648658msgstr ""
659+ "不是有效转义序列的反斜杠加字符组合现在会生成 :exc:`SyntaxWarning`,而不是 :exc:`DeprecationWarning`。 "
660+ "例如,``re.compile(\"\\ d+\\ .\\ d+\" )`` 现在会发出 :exc:`SyntaxWarning` (``\"\\ d\" `` "
661+ "是一个无效的转义序列,请使用原始字符串来表示正则表达式: ``re.compile(r\"\\ d+\\ .\\ d+\" )``)。 在未来的 Python "
662+ "版本中,最终将引发 :exc:`SyntaxError`,而不是 :exc:`SyntaxWarning`。 (由 Victor Stinner 在 "
663+ ":gh:`98401` 中贡献。)"
649664
650665#: ../../whatsnew/3.12.rst:512
651666msgid ""
@@ -706,6 +721,8 @@ msgid ""
706721"exception as a :pep:`678` note. (Contributed by Irit Katriel in "
707722":gh:`77757`.)"
708723msgstr ""
724+ "在类或类型对象的 ``__set_name__`` 方法中引发的异常不再由 :exc:`RuntimeError` 来包装。 上下文信息将作为 "
725+ ":pep:`678` 注释添加到异常中。 (由 Irit Katriel 在 :gh:`77757` 中贡献。)"
709726
710727#: ../../whatsnew/3.12.rst:540
711728msgid ""
@@ -765,6 +782,10 @@ msgid ""
765782"(Contributed by Jacob Bower & Itamar Oren in :gh:`102853`, :gh:`104140`, and"
766783" :gh:`104138`)"
767784msgstr ""
785+ "添加了 :func:`asyncio.eager_task_factory` 和 "
786+ ":func:`asyncio.create_eager_task_factory` 函数以允许在主动型任务执行中选择事件循环,使某些用例的速度提升了 2"
787+ " 至 5 倍。 (由 Jacob Bower 和 Itamar Oren 在 :gh:`102853`, :gh:`104140` 和 "
788+ ":gh:`104138` 中贡献。)"
768789
769790#: ../../whatsnew/3.12.rst:574
770791msgid ""
0 commit comments