@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version :Python 3.11\n "
15
15
"Report-Msgid-Bugs-To :\n "
16
- "POT-Creation-Date :2025-01-31 15:27 +0000\n "
16
+ "POT-Creation-Date :2025-04-18 15:31 +0000\n "
17
17
"PO-Revision-Date :2023-05-24 02:23+0000\n "
18
18
"Last-Translator :Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n "
19
19
"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -3140,13 +3140,19 @@ msgid ""
3140
3140
"platforms that have a 64 bit data type. Any performance differences in "
3141
3141
"comparison with the older FNV algorithm are trivial."
3142
3142
msgstr ""
3143
+ ":pep:`456` 在早先对 Python 的哈希算法所做安全修复上更进一步以解决特定的 DOS 攻击问题,以字典查找为基础的对外公开的 API "
3144
+ "可能面临此种攻击。(请参阅 :issue:`14621` 了解此轮改进的缘起。) 该 PEP 统一了 CPython "
3145
+ "的哈希代码以使打包者能更容易地用不同哈希算法进行替换,并在具有 64 位数据类型的平台上将 Python 的默认实现切换为 SipHash 实现。 "
3146
+ "与旧版 FNV 算法相比只有很小的性能差异。"
3143
3147
3144
3148
#: ../../whatsnew/3.4.rst:1852
3145
3149
msgid ""
3146
3150
"The PEP adds additional fields to the :data:`sys.hash_info` named tuple to "
3147
3151
"describe the hash algorithm in use by the currently executing binary. "
3148
3152
"Otherwise, the PEP does not alter any existing CPython APIs."
3149
3153
msgstr ""
3154
+ "该 PEP 向 :data:`sys.hash_info` 具名元组添加了额外字段来描述当前正在执行的二进制文件所使用的哈希算法。 除此之外,该 PEP"
3155
+ " 没有改变任何现有的 CPython API。"
3150
3156
3151
3157
#: ../../whatsnew/3.4.rst:1860
3152
3158
msgid "PEP 436: Argument Clinic"
@@ -3159,20 +3165,24 @@ msgid ""
3159
3165
" signatures for builtins and standard library extension modules implemented "
3160
3166
"in C."
3161
3167
msgstr ""
3168
+ "现在\" Argument Clinic\" (:pep:`436`) 是 CPython 构建过程的一部分并可被用于简化为内置对象和以 C "
3169
+ "实现的标准库扩展模块定义和维护准确签名的过程。"
3162
3170
3163
3171
#: ../../whatsnew/3.4.rst:1867
3164
3172
msgid ""
3165
3173
"Some standard library extension modules have been converted to use Argument "
3166
3174
"Clinic in Python 3.4, and :mod:`pydoc` and :mod:`inspect` have been updated "
3167
3175
"accordingly."
3168
3176
msgstr ""
3177
+ "在 Python 3.4 中有一些标准库模块已被转换为使用 Argument Clinic,而 :mod:`pydoc` 和 "
3178
+ ":mod:`inspect` 也进行了相应的更新。"
3169
3179
3170
3180
#: ../../whatsnew/3.4.rst:1871
3171
3181
msgid ""
3172
3182
"It is expected that signature metadata for programmatic introspection will "
3173
3183
"be added to additional callables implemented in C as part of Python 3.4 "
3174
3184
"maintenance releases."
3175
- msgstr ""
3185
+ msgstr "预期针对程序化内省的签名元数据将被添加到更多的以 C 实现的可调用对象中作为 Python 3.4 维护发布版的组成部分。 "
3176
3186
3177
3187
#: ../../whatsnew/3.4.rst:1876
3178
3188
msgid ""
@@ -3181,6 +3191,8 @@ msgid ""
3181
3191
"core development team in this case, as Argument Clinic will not be made "
3182
3192
"available as a public API for third party use in Python 3.4."
3183
3193
msgstr ""
3194
+ "Argument Clinic PEP 尚未完整更新到与具体实现的状态相一致。 这种情况被发布版管理者和核心开发团队认为是可接受的,因为 "
3195
+ "Argument Clinic 在 Python 3.4 中将不会作为公有 API 提供给第三方。"
3184
3196
3185
3197
#: ../../whatsnew/3.4.rst:1883
3186
3198
msgid ":pep:`436` -- The Argument Clinic DSL"
@@ -3200,6 +3212,8 @@ msgid ""
3200
3212
"allowing retrieval of function pointers from named type slots when using the"
3201
3213
" limited API. (Contributed by Martin von Löwis in :issue:`17162`.)"
3202
3214
msgstr ""
3215
+ "新的 :c:func:`PyType_GetSlot` 函数已被添加到稳定 ABI,以允许在使用受限 API 时从指定的类型槽位提取函数指针。 (由 "
3216
+ "Martin von Löwis 在 :issue:`17162` 中贡献。)"
3203
3217
3204
3218
#: ../../whatsnew/3.4.rst:1894
3205
3219
msgid ""
@@ -3215,26 +3229,34 @@ msgid ""
3215
3229
"marked as accepting ``const char *`` rather than ``char *``. (Contributed "
3216
3230
"by Serhiy Storchaka in :issue:`1772673`.)"
3217
3231
msgstr ""
3232
+ "大多数不修改字符串参数的 Python C API 现在已被正确地标记为接受 ``const char *`` 而不是 ``char *``。 (由 "
3233
+ "Serhiy Storchaka 在 :issue:`1772673` 中贡献。)"
3218
3234
3219
3235
#: ../../whatsnew/3.4.rst:1903
3220
3236
msgid ""
3221
3237
"A new shell version of ``python-config`` can be used even when a python "
3222
3238
"interpreter is not available (for example, in cross compilation scenarios)."
3223
3239
msgstr ""
3240
+ "一个新的 ``python-config`` 的 shell 版本即使在 python 解释器不可用时仍可被使用(例如,在交叉编译的场景中)。"
3224
3241
3225
3242
#: ../../whatsnew/3.4.rst:1906
3226
3243
msgid ""
3227
3244
":c:func:`PyUnicode_FromFormat` now supports width and precision "
3228
3245
"specifications for ``%s``, ``%A``, ``%U``, ``%V``, ``%S``, and ``%R``. "
3229
3246
"(Contributed by Ysj Ray and Victor Stinner in :issue:`7330`.)"
3230
3247
msgstr ""
3248
+ "现在 :c:func:`PyUnicode_FromFormat` 支持为 ``%s``, ``%A``, ``%U``, ``%V``, ``%S``"
3249
+ " 和 ``%R`` 使用宽度和精度说明符。 (由 Ysj Ray 和 Victor Stinner 在 :issue:`7330` 中贡献。)"
3231
3250
3232
3251
#: ../../whatsnew/3.4.rst:1910
3233
3252
msgid ""
3234
3253
"New function :c:func:`PyStructSequence_InitType2` supplements the existing "
3235
3254
":c:func:`PyStructSequence_InitType` function. The difference is that it "
3236
3255
"returns ``0`` on success and ``-1`` on failure."
3237
3256
msgstr ""
3257
+ "新的函数 :c:func:`PyStructSequence_InitType2` 为现有的 "
3258
+ ":c:func:`PyStructSequence_InitType` 函数提供了补充。 其不同之处在于它会在成功时返回 ``0`` 而在失败时返回 "
3259
+ "``-1``。"
3238
3260
3239
3261
#: ../../whatsnew/3.4.rst:1914
3240
3262
msgid ""
@@ -3243,6 +3265,8 @@ msgid ""
3243
3265
" object allocator have been silenced. (Contributed by Dhiru Kholia in "
3244
3266
":issue:`18596`.)"
3245
3267
msgstr ""
3268
+ "现在 CPython 源代码可以使用最近版本的 GCC 和 clang 的地址确定性检查特性进行编译:小对象分配器中的假警报已被消除。 (由 Dhiru"
3269
+ " Kholia 在 :issue:`18596` 中贡献。)"
3246
3270
3247
3271
#: ../../whatsnew/3.4.rst:1919
3248
3272
msgid ""
@@ -3252,13 +3276,19 @@ msgid ""
3252
3276
"<https://en.wikipedia.org/wiki/Data_Execution_Prevention>`_. (Contributed "
3253
3277
"by Christian Heimes in :issue:`16632`.)"
3254
3278
msgstr ""
3279
+ "Windows 构建版现在会使用 `寻址空间布局随机化 "
3280
+ "<https://en.wikipedia.org/wiki/Address_space_layout_randomization>`_ 和 "
3281
+ "`数据执行保护 <https://en.wikipedia.org/wiki/Data_Execution_Prevention>`_。 (由 "
3282
+ "Christian Heimes 在 :issue:`16632` 中贡献。)"
3255
3283
3256
3284
#: ../../whatsnew/3.4.rst:1924
3257
3285
msgid ""
3258
3286
"New function :c:func:`PyObject_LengthHint` is the C API equivalent of "
3259
3287
":func:`operator.length_hint`. (Contributed by Armin Ronacher in "
3260
3288
":issue:`16148`.)"
3261
3289
msgstr ""
3290
+ "新的函数 :c:func:`PyObject_LengthHint` 是 :func:`operator.length_hint` 的 C API "
3291
+ "等价形式。 (由 Armin Ronacher 在 :issue:`16148` 中贡献。)"
3262
3292
3263
3293
#: ../../whatsnew/3.4.rst:1932
3264
3294
msgid "Other Improvements"
@@ -3301,6 +3331,9 @@ msgid ""
3301
3331
"script at the windows command prompt by just typing its name without the "
3302
3332
"``.py`` extension. (Contributed by Paul Moore in :issue:`18569`.)"
3303
3333
msgstr ""
3334
+ "现在 CPython Windows 安装程序会在注册扩展名时将 ``.py`` 添加到 :envvar:`PATHEXT` 变量,以允许用户在 "
3335
+ "windows 命令提示符下直接键入不带 ``.py`` 扩展名的 python 脚本名称来运行它。 (由 Paul Moore 在 "
3336
+ ":issue:`18569` 中贡献。)"
3304
3337
3305
3338
#: ../../whatsnew/3.4.rst:1962
3306
3339
msgid ""