Skip to content

Commit 99f8d55

Browse files
[po] auto sync
1 parent c779513 commit 99f8d55

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.32%", "updated_at": "2025-04-09T14:56:53Z"}
1+
{"translation": "81.33%", "updated_at": "2025-04-10T06:56:46Z"}

whatsnew/3.4.po

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,13 +3310,19 @@ msgid ""
33103310
"platforms that have a 64 bit data type. Any performance differences in "
33113311
"comparison with the older FNV algorithm are trivial."
33123312
msgstr ""
3313+
":pep:`456` 在早先对 Python 的哈希算法所做安全修复上更进一步以解决特定的 DOS 攻击问题,以字典查找为基础的对外公开的 API "
3314+
"可能面临此种攻击。(请参阅 :issue:`14621` 了解此轮改进的缘起。) 该 PEP 统一了 CPython "
3315+
"的哈希代码以使打包者能更容易地用不同哈希算法进行替换,并在具有 64 位数据类型的平台上将 Python 的默认实现切换为 SipHash 实现。 "
3316+
"与旧版 FNV 算法相比只有很小的性能差异。"
33133317

33143318
#: ../../whatsnew/3.4.rst:1851
33153319
msgid ""
33163320
"The PEP adds additional fields to the :data:`sys.hash_info` named tuple to "
33173321
"describe the hash algorithm in use by the currently executing binary. "
33183322
"Otherwise, the PEP does not alter any existing CPython APIs."
33193323
msgstr ""
3324+
"该 PEP 向 :data:`sys.hash_info` 具名元组添加了额外字段来描述当前正在执行的二进制文件所使用的哈希算法。 除此之外,该 PEP"
3325+
" 没有改变任何现有的 CPython API。"
33203326

33213327
#: ../../whatsnew/3.4.rst:1859
33223328
msgid "PEP 436: Argument Clinic"
@@ -3421,6 +3427,9 @@ msgid ""
34213427
":c:func:`PyStructSequence_InitType` function. The difference is that it "
34223428
"returns ``0`` on success and ``-1`` on failure."
34233429
msgstr ""
3430+
"新的函数 :c:func:`PyStructSequence_InitType2` 为现有的 "
3431+
":c:func:`PyStructSequence_InitType` 函数提供了补充。 其不同之处在于它会在成功时返回 ``0`` 而在失败时返回 "
3432+
"``-1``。"
34243433

34253434
#: ../../whatsnew/3.4.rst:1913
34263435
msgid ""
@@ -3429,6 +3438,8 @@ msgid ""
34293438
" object allocator have been silenced. (Contributed by Dhiru Kholia in "
34303439
":issue:`18596`.)"
34313440
msgstr ""
3441+
"现在 CPython 源代码可以使用最近版本的 GCC 和 clang 的地址确定性检查特性进行编译:小对象分配器中的假警报已被消除。 (由 Dhiru"
3442+
" Kholia 在 :issue:`18596` 中贡献。)"
34323443

34333444
#: ../../whatsnew/3.4.rst:1918
34343445
msgid ""
@@ -3438,13 +3449,19 @@ msgid ""
34383449
"<https://en.wikipedia.org/wiki/Data_Execution_Prevention>`_. (Contributed "
34393450
"by Christian Heimes in :issue:`16632`.)"
34403451
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` 中贡献。)"
34413456

34423457
#: ../../whatsnew/3.4.rst:1923
34433458
msgid ""
34443459
"New function :c:func:`PyObject_LengthHint` is the C API equivalent of "
34453460
":func:`operator.length_hint`. (Contributed by Armin Ronacher in "
34463461
":issue:`16148`.)"
34473462
msgstr ""
3463+
"新的函数 :c:func:`PyObject_LengthHint` 是 :func:`operator.length_hint` 的 C API "
3464+
"等价形式。 (由 Armin Ronacher 在 :issue:`16148` 中贡献。)"
34483465

34493466
#: ../../whatsnew/3.4.rst:1931
34503467
msgid "Other Improvements"
@@ -3496,6 +3513,10 @@ msgid ""
34963513
" coverage report for the C codebase using ``gcov`` and `lcov "
34973514
"<https://github.com/linux-test-project/lcov>`_."
34983515
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 消息报告。"
34993520

35003521
#: ../../whatsnew/3.4.rst:1967
35013522
msgid ""
@@ -3504,6 +3525,9 @@ msgid ""
35043525
":func:`sys.getallocatedblocks`. (Contributed by Antoine Pitrou in "
35053526
":issue:`13390`.)"
35063527
msgstr ""
3528+
"现在 :ref:`python 回归测试套件 <regrtest>` 的 ``-R`` 选项还将使用 "
3529+
":func:`sys.getallocatedblocks` 来检查内存分配泄漏。 (由 Antoine Pitrou 在 :issue:`13390`"
3530+
" 中贡献。)"
35073531

35083532
#: ../../whatsnew/3.4.rst:1972
35093533
msgid "``python -m`` now works with namespace packages."
@@ -3533,6 +3557,9 @@ msgid ""
35333557
"certain uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin "
35343558
"Peterson in :issue:`17853`.)"
35353559
msgstr ""
3560+
"增加了新的操作码 :opcode:`!LOAD_CLASSDEREF` 用来修复一个在类体中加载自由变量时的程序缺陷,它可能因 "
3561+
":ref:`__prepare__ <prepare>` 的特定用法而被触发。 (由 Benjamin Peterson 在 "
3562+
":issue:`17853` 中贡献。)"
35363563

35373564
#: ../../whatsnew/3.4.rst:1987
35383565
msgid ""

0 commit comments

Comments
 (0)