@@ -2411,6 +2411,9 @@ msgid ""
2411
2411
"leaks, especially if automated via a test suite. (Contributed by Antoine "
2412
2412
"Pitrou in :issue:`13390`.)"
2413
2413
msgstr ""
2414
+ "新增函数 :func:`sys.getallocatedblocks` 可返回当前由解释器所分配的内存块数量。 (在使用默认 ``--with-"
2415
+ "pymalloc`` 设置的 CPython 中,这将是通过 :c:func:`PyObject_Malloc` API 执行的分配。) "
2416
+ "这在追踪内存泄漏时会很有用处,特别是对于通过测试套件自动追踪的场景。 (由 Antoine Pitrou 在 :issue:`13390` 中贡献。)"
2414
2417
2415
2418
#: ../../whatsnew/3.4.rst:1558
2416
2419
msgid ""
@@ -3000,6 +3003,8 @@ msgid ""
3000
3003
"now works correctly (previously it silently returned the first python module"
3001
3004
" in the file). (Contributed by Václav Šmilauer in :issue:`16421`.)"
3002
3005
msgstr ""
3006
+ "现在将能够正确地从单个 OS 模块加载多个 (``.so``, ``.dll``) python 模块(在之前版本中则会静默地返回文件中的第一个 "
3007
+ "python 模块)。 (由 Václav Šmilauer 在 :issue:`16421` 中贡献。)"
3003
3008
3004
3009
#: ../../whatsnew/3.4.rst:1983
3005
3010
msgid ""
@@ -3008,20 +3013,27 @@ msgid ""
3008
3013
" uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin Peterson in"
3009
3014
" :issue:`17853`.)"
3010
3015
msgstr ""
3016
+ "增加了新的操作码 :opcode:`LOAD_CLASSDEREF`,用于修复一个在类体中加载自由变量的程序错误,它可能因 "
3017
+ ":ref:`__prepare__ <prepare>` 的特定用法而触发。 (由 Benjamin Peterson 在 :issue:`17853`"
3018
+ " 中贡献。)"
3011
3019
3012
3020
#: ../../whatsnew/3.4.rst:1988
3013
3021
msgid ""
3014
3022
"A number of MemoryError-related crashes were identified and fixed by Victor "
3015
3023
"Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, "
3016
3024
":issue:`18520`)."
3017
3025
msgstr ""
3026
+ "多个有关 MemoryError 的崩溃问题被 Victor Stinner 使用他基于 :pep:`445` 的 ``pyfailmalloc`` "
3027
+ "工具加以确定并修复 (:issue:`18408`, :issue:`18520`)。"
3018
3028
3019
3029
#: ../../whatsnew/3.4.rst:1992
3020
3030
msgid ""
3021
3031
"The ``pyvenv`` command now accepts a ``--copies`` option to use copies "
3022
3032
"rather than symlinks even on systems where symlinks are the default. "
3023
3033
"(Contributed by Vinay Sajip in :issue:`18807`.)"
3024
3034
msgstr ""
3035
+ "现在 ``pyvenv`` 命令接受一个 ``--copies`` 选项以使用拷贝而不是符号链接,即使在默认使用符号链接的系统上也是如此。 (由 "
3036
+ "Vinay Sajip 在 :issue:`18807` 中贡献。)"
3025
3037
3026
3038
#: ../../whatsnew/3.4.rst:1996
3027
3039
msgid ""
0 commit comments