@@ -3310,13 +3310,19 @@ msgid ""
3310
3310
"platforms that have a 64 bit data type. Any performance differences in "
3311
3311
"comparison with the older FNV algorithm are trivial."
3312
3312
msgstr ""
3313
+ ":pep:`456` 在早先对 Python 的哈希算法所做安全修复上更进一步以解决特定的 DOS 攻击问题,以字典查找为基础的对外公开的 API "
3314
+ "可能面临此种攻击。(请参阅 :issue:`14621` 了解此轮改进的缘起。) 该 PEP 统一了 CPython "
3315
+ "的哈希代码以使打包者能更容易地用不同哈希算法进行替换,并在具有 64 位数据类型的平台上将 Python 的默认实现切换为 SipHash 实现。 "
3316
+ "与旧版 FNV 算法相比只有很小的性能差异。"
3313
3317
3314
3318
#: ../../whatsnew/3.4.rst:1851
3315
3319
msgid ""
3316
3320
"The PEP adds additional fields to the :data:`sys.hash_info` named tuple to "
3317
3321
"describe the hash algorithm in use by the currently executing binary. "
3318
3322
"Otherwise, the PEP does not alter any existing CPython APIs."
3319
3323
msgstr ""
3324
+ "该 PEP 向 :data:`sys.hash_info` 具名元组添加了额外字段来描述当前正在执行的二进制文件所使用的哈希算法。 除此之外,该 PEP"
3325
+ " 没有改变任何现有的 CPython API。"
3320
3326
3321
3327
#: ../../whatsnew/3.4.rst:1859
3322
3328
msgid "PEP 436: Argument Clinic"
@@ -3421,6 +3427,9 @@ msgid ""
3421
3427
":c:func:`PyStructSequence_InitType` function. The difference is that it "
3422
3428
"returns ``0`` on success and ``-1`` on failure."
3423
3429
msgstr ""
3430
+ "新的函数 :c:func:`PyStructSequence_InitType2` 为现有的 "
3431
+ ":c:func:`PyStructSequence_InitType` 函数提供了补充。 其不同之处在于它会在成功时返回 ``0`` 而在失败时返回 "
3432
+ "``-1``。"
3424
3433
3425
3434
#: ../../whatsnew/3.4.rst:1913
3426
3435
msgid ""
@@ -3429,6 +3438,8 @@ msgid ""
3429
3438
" object allocator have been silenced. (Contributed by Dhiru Kholia in "
3430
3439
":issue:`18596`.)"
3431
3440
msgstr ""
3441
+ "现在 CPython 源代码可以使用最近版本的 GCC 和 clang 的地址确定性检查特性进行编译:小对象分配器中的假警报已被消除。 (由 Dhiru"
3442
+ " Kholia 在 :issue:`18596` 中贡献。)"
3432
3443
3433
3444
#: ../../whatsnew/3.4.rst:1918
3434
3445
msgid ""
@@ -3438,13 +3449,19 @@ msgid ""
3438
3449
"<https://en.wikipedia.org/wiki/Data_Execution_Prevention>`_. (Contributed "
3439
3450
"by Christian Heimes in :issue:`16632`.)"
3440
3451
msgstr ""
3452
+ "Windows 构建版现在会使用 `寻址空间布局随机化 "
3453
+ "<https://en.wikipedia.org/wiki/Address_space_layout_randomization>`_ 和 "
3454
+ "`数据执行保护 <https://en.wikipedia.org/wiki/Data_Execution_Prevention>`_。 (由 "
3455
+ "Christian Heimes 在 :issue:`16632` 中贡献。)"
3441
3456
3442
3457
#: ../../whatsnew/3.4.rst:1923
3443
3458
msgid ""
3444
3459
"New function :c:func:`PyObject_LengthHint` is the C API equivalent of "
3445
3460
":func:`operator.length_hint`. (Contributed by Armin Ronacher in "
3446
3461
":issue:`16148`.)"
3447
3462
msgstr ""
3463
+ "新的函数 :c:func:`PyObject_LengthHint` 是 :func:`operator.length_hint` 的 C API "
3464
+ "等价形式。 (由 Armin Ronacher 在 :issue:`16148` 中贡献。)"
3448
3465
3449
3466
#: ../../whatsnew/3.4.rst:1931
3450
3467
msgid "Other Improvements"
@@ -3496,6 +3513,10 @@ msgid ""
3496
3513
" coverage report for the C codebase using ``gcov`` and `lcov "
3497
3514
"<https://github.com/linux-test-project/lcov>`_."
3498
3515
msgstr ""
3516
+ "新的 ``make`` 目标 `coverage-report "
3517
+ "<https://devguide.python.org/coverage/#measuring-coverage-of-c-code-with-"
3518
+ "gcov-and-lcov>`_ 将使用 ``gcov`` 和 `lcov <https://github.com/linux-test-"
3519
+ "project/lcov>`_ 基于 C 代码库构建 python,运行测试套件并生成 HTML 消息报告。"
3499
3520
3500
3521
#: ../../whatsnew/3.4.rst:1967
3501
3522
msgid ""
@@ -3504,6 +3525,9 @@ msgid ""
3504
3525
":func:`sys.getallocatedblocks`. (Contributed by Antoine Pitrou in "
3505
3526
":issue:`13390`.)"
3506
3527
msgstr ""
3528
+ "现在 :ref:`python 回归测试套件 <regrtest>` 的 ``-R`` 选项还将使用 "
3529
+ ":func:`sys.getallocatedblocks` 来检查内存分配泄漏。 (由 Antoine Pitrou 在 :issue:`13390`"
3530
+ " 中贡献。)"
3507
3531
3508
3532
#: ../../whatsnew/3.4.rst:1972
3509
3533
msgid "``python -m`` now works with namespace packages."
@@ -3533,6 +3557,9 @@ msgid ""
3533
3557
"certain uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin "
3534
3558
"Peterson in :issue:`17853`.)"
3535
3559
msgstr ""
3560
+ "增加了新的操作码 :opcode:`!LOAD_CLASSDEREF` 用来修复一个在类体中加载自由变量时的程序缺陷,它可能因 "
3561
+ ":ref:`__prepare__ <prepare>` 的特定用法而被触发。 (由 Benjamin Peterson 在 "
3562
+ ":issue:`17853` 中贡献。)"
3536
3563
3537
3564
#: ../../whatsnew/3.4.rst:1987
3538
3565
msgid ""
0 commit comments