@@ -3099,6 +3099,10 @@ msgid ""
3099
3099
"platforms that have a 64 bit data type. Any performance differences in "
3100
3100
"comparison with the older FNV algorithm are trivial."
3101
3101
msgstr ""
3102
+ ":pep:`456` 在早先对 Python 的哈希算法所做安全修复上更进一步以解决特定的 DOS 攻击问题,以字典查找为基础的对外公开的 API "
3103
+ "可能面临此种攻击。(请参阅 :issue:`14621` 了解此轮改进的缘起。) 该 PEP 统一了 CPython "
3104
+ "的哈希代码以使打包者能更容易地用不同哈希算法进行替换,并在具有 64 位数据类型的平台上将 Python 的默认实现切换为 SipHash 实现。 "
3105
+ "与旧版 FNV 算法相比只有很小的性能差异。"
3102
3106
3103
3107
#: ../../whatsnew/3.4.rst:1852
3104
3108
msgid ""
@@ -3207,6 +3211,9 @@ msgid ""
3207
3211
":c:func:`PyStructSequence_InitType` function. The difference is that it "
3208
3212
"returns ``0`` on success and ``-1`` on failure."
3209
3213
msgstr ""
3214
+ "新的函数 :c:func:`PyStructSequence_InitType2` 为现有的 "
3215
+ ":c:func:`PyStructSequence_InitType` 函数提供了补充。 其不同之处在于它会在成功时返回 ``0`` 而在失败时返回 "
3216
+ "``-1``。"
3210
3217
3211
3218
#: ../../whatsnew/3.4.rst:1914
3212
3219
msgid ""
@@ -3215,6 +3222,8 @@ msgid ""
3215
3222
" object allocator have been silenced. (Contributed by Dhiru Kholia in "
3216
3223
":issue:`18596`.)"
3217
3224
msgstr ""
3225
+ "现在 CPython 源代码可以使用最近版本的 GCC 和 clang 的地址确定性检查特性进行编译:小对象分配器中的假警报已被消除。 (由 Dhiru"
3226
+ " Kholia 在 :issue:`18596` 中贡献。)"
3218
3227
3219
3228
#: ../../whatsnew/3.4.rst:1919
3220
3229
msgid ""
@@ -3224,13 +3233,19 @@ msgid ""
3224
3233
"<https://en.wikipedia.org/wiki/Data_Execution_Prevention>`_. (Contributed "
3225
3234
"by Christian Heimes in :issue:`16632`.)"
3226
3235
msgstr ""
3236
+ "Windows 构建版现在会使用 `寻址空间布局随机化 "
3237
+ "<https://en.wikipedia.org/wiki/Address_space_layout_randomization>`_ 和 "
3238
+ "`数据执行保护 <https://en.wikipedia.org/wiki/Data_Execution_Prevention>`_。 (由 "
3239
+ "Christian Heimes 在 :issue:`16632` 中贡献。)"
3227
3240
3228
3241
#: ../../whatsnew/3.4.rst:1924
3229
3242
msgid ""
3230
3243
"New function :c:func:`PyObject_LengthHint` is the C API equivalent of "
3231
3244
":func:`operator.length_hint`. (Contributed by Armin Ronacher in "
3232
3245
":issue:`16148`.)"
3233
3246
msgstr ""
3247
+ "新的函数 :c:func:`PyObject_LengthHint` 是 :func:`operator.length_hint` 的 C API "
3248
+ "等价形式。 (由 Armin Ronacher 在 :issue:`16148` 中贡献。)"
3234
3249
3235
3250
#: ../../whatsnew/3.4.rst:1932
3236
3251
msgid "Other Improvements"
@@ -3273,6 +3288,9 @@ msgid ""
3273
3288
"script at the windows command prompt by just typing its name without the "
3274
3289
"``.py`` extension. (Contributed by Paul Moore in :issue:`18569`.)"
3275
3290
msgstr ""
3291
+ "现在 CPython Windows 安装程序会在注册扩展名时将 ``.py`` 添加到 :envvar:`PATHEXT` 变量,以允许用户在 "
3292
+ "windows 命令提示符下直接键入不带 ``.py`` 扩展名的 python 脚本名称来运行它。 (由 Paul Moore 在 "
3293
+ ":issue:`18569` 中贡献。)"
3276
3294
3277
3295
#: ../../whatsnew/3.4.rst:1962
3278
3296
msgid ""
0 commit comments