10
10
# Alpha Du <alphanow@gmail.com>, 2019
11
11
# ppcfish <ppcfish@gmail.com>, 2019
12
12
# Sean Chao <seanchao0804@gmail.com>, 2020
13
- # Freesand Leo <yuqinju@163.com>, 2024
14
13
# Rafael Fontenelle <rffontenelle@gmail.com>, 2024
14
+ # Freesand Leo <yuqinju@163.com>, 2024
15
15
#
16
16
#, fuzzy
17
17
msgid ""
@@ -20,7 +20,7 @@ msgstr ""
20
20
"Report-Msgid-Bugs-To : \n "
21
21
"POT-Creation-Date : 2024-03-08 18:35+0000\n "
22
22
"PO-Revision-Date : 2017-02-16 23:44+0000\n "
23
- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail .com>, 2024\n "
23
+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2024\n "
24
24
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
25
25
"MIME-Version : 1.0\n "
26
26
"Content-Type : text/plain; charset=UTF-8\n "
@@ -3074,6 +3074,11 @@ msgid ""
3074
3074
"(Contributed by Matej Cepl in :issue:`19494` and Akshit Khurana in "
3075
3075
":issue:`7159`.)"
3076
3076
msgstr ""
3077
+ "新增的 :class:`request.HTTPPasswordMgrWithPriorAuth "
3078
+ "<urllib.request.HTTPPasswordMgrWithPriorAuth>` 类允许对 HTTP 基本认证凭据进行管理以消除不必要的 "
3079
+ "``401`` 响应处理,或在第一次请求时无条件地发送凭据,以便与返回 ``404`` 响应的服务器通信而不是在未发送 "
3080
+ "``Authorization`` 头信息的情况下发送 ``401``。 (由 Matej Cepl 在 :issue:`19494` 以及 "
3081
+ "Akshit Khurana 在 :issue:`7159` 中贡献。)"
3077
3082
3078
3083
#: ../../whatsnew/3.5.rst:2038
3079
3084
msgid ""
@@ -3082,13 +3087,18 @@ msgid ""
3082
3087
" query parts if needed. (Contributed by Samwyse and Arnon Yaari in "
3083
3088
":issue:`13866`.)"
3084
3089
msgstr ""
3090
+ "为 :func:`parse.urlencode() <urllib.parse.urlencode>` 函数新增的 *quote_via* "
3091
+ "参数提供了一种在需要时控制查询部分的编码格式的手段。 (由 Samwyse 和 Arnon Yaari 在 :issue:`13866` 中贡献。)"
3085
3092
3086
3093
#: ../../whatsnew/3.5.rst:2043
3087
3094
msgid ""
3088
3095
"The :func:`request.urlopen() <urllib.request.urlopen>` function accepts an "
3089
3096
":class:`ssl.SSLContext` object as a *context* argument, which will be used "
3090
3097
"for the HTTPS connection. (Contributed by Alex Gaynor in :issue:`22366`.)"
3091
3098
msgstr ""
3099
+ ":func:`request.urlopen() <urllib.request.urlopen>` 函数接受 "
3100
+ ":class:`ssl.SSLContext` 对象作为 *context* 参数,它将被用于 HTTPS 连接。 (由 Alex Gaynor 在 "
3101
+ ":issue:`22366` 中贡献。).)"
3092
3102
3093
3103
#: ../../whatsnew/3.5.rst:2047
3094
3104
msgid ""
@@ -3097,6 +3107,9 @@ msgid ""
3097
3107
":rfc:`1808` and :rfc:`2396`. (Contributed by Demian Brecht and Senthil "
3098
3108
"Kumaran in :issue:`22118`.)"
3099
3109
msgstr ""
3110
+ ":func:`parse.urljoin() <urllib.parse.urljoin>` 已获得更新已使用 :rfc:`3986` 语义来解析相对 "
3111
+ "URL,而不是 :rfc:`1808` 和 :rfc:`2396`。 (由 Demian Brecht 和 Senthil Kumaran 在 "
3112
+ ":issue:`22118` 中贡献。)"
3100
3113
3101
3114
#: ../../whatsnew/3.5.rst:2054
3102
3115
msgid "wsgiref"
@@ -3170,6 +3183,8 @@ msgid ""
3170
3183
"now accepts ``\" x\" `` to request exclusive creation. (Contributed by Serhiy "
3171
3184
"Storchaka in :issue:`21717`.)"
3172
3185
msgstr ""
3186
+ "现在 :meth:`ZipFile.open() <zipfile.ZipFile.open>` 方法的 *mode* 参数可接受 ``\" x\" `` "
3187
+ "来请求独占式的创建。 (由 Serhiy Storchaka 在 :issue:`21717` 中贡献。)"
3173
3188
3174
3189
#: ../../whatsnew/3.5.rst:2096
3175
3190
msgid "Other module-level changes"
@@ -3182,6 +3197,9 @@ msgid ""
3182
3197
"objects <bytes-like object>`. (Contributed by Serhiy Storchaka in "
3183
3198
":issue:`23001`.)"
3184
3199
msgstr ""
3200
+ "现在 :mod:`mmap`, :mod:`ossaudiodev`, :mod:`socket`, :mod:`ssl` 和 "
3201
+ ":mod:`codecs` 模块中的许多函数都接受可写的 :term:`字节型对象 <bytes-like object>`。 (由 Serhiy "
3202
+ "Storchaka 在 :issue:`23001` 中贡献。)"
3185
3203
3186
3204
#: ../../whatsnew/3.5.rst:2105
3187
3205
msgid "Optimizations"
@@ -3195,6 +3213,10 @@ msgid ""
3195
3213
"underlying ``readdir`` or ``FindFirstFile``/``FindNextFile`` system calls. "
3196
3214
"(Contributed by Ben Hoyt with help from Victor Stinner in :issue:`23605`.)"
3197
3215
msgstr ""
3216
+ ":func:`os.walk` 函数在 POSIX 系统上可提速 3 至 5 倍,而在 Windows 上可提速 7 至 20 倍。 这是因为使用了新的"
3217
+ " :func:`os.scandir` 函数,它可以暴露来自下层 ``readdir`` 或 "
3218
+ "``FindFirstFile``/``FindNextFile`` 系统调用的文件信息。 (由 Ben Hoyt 在 :issue:`23605` "
3219
+ "中贡献并得到 Victor Stinner 的协助。)"
3198
3220
3199
3221
#: ../../whatsnew/3.5.rst:2113
3200
3222
msgid ""
@@ -3203,6 +3225,8 @@ msgid ""
3203
3225
"to allocate memory for these objects. (Contributed by Victor Stinner in "
3204
3226
":issue:`21233`.)"
3205
3227
msgstr ""
3228
+ "对于大对象 ``bytes(int)`` (以零字节填充) 的构建速度更快且使用更少内存。 将使用 ``calloc()`` 而不是 "
3229
+ "``malloc()`` 为这些对象分配内存。 (由 Victor Stinner 在 :issue:`21233` 中贡献。)"
3206
3230
3207
3231
#: ../../whatsnew/3.5.rst:2118
3208
3232
msgid ""
@@ -3215,12 +3239,22 @@ msgid ""
3215
3239
"times. (Contributed by Antoine Pitrou, Michel Albert, and Markus in "
3216
3240
":issue:`21486`, :issue:`21487`, :issue:`20826`, :issue:`23266`.)"
3217
3241
msgstr ""
3242
+ ":mod:`ipaddress` 中的 :class:`~ipaddress.IPv4Network` 和 "
3243
+ ":class:`~ipaddress.IPv6Network` 等操作获得了大幅度的加速,比如 "
3244
+ ":meth:`~ipaddress.IPv4Network.subnets`, "
3245
+ ":meth:`~ipaddress.IPv4Network.supernet`, "
3246
+ ":func:`~ipaddress.summarize_address_range`, "
3247
+ ":func:`~ipaddress.collapse_addresses`。 加速幅度从 3 到 15 倍不等。 (由 Antoine Pitrou, "
3248
+ "Michel Albert 和 Markus 在 :issue:`21486`, :issue:`21487`, :issue:`20826`, "
3249
+ ":issue:`23266` 中贡献。)"
3218
3250
3219
3251
#: ../../whatsnew/3.5.rst:2126
3220
3252
msgid ""
3221
3253
"Pickling of :mod:`ipaddress` objects was optimized to produce significantly "
3222
3254
"smaller output. (Contributed by Serhiy Storchaka in :issue:`23133`.)"
3223
3255
msgstr ""
3256
+ ":mod:`ipaddress` 对象的封存操作获得了优化以产生显著减小的输出。 (由 Serhiy Storchaka 在 "
3257
+ ":issue:`23133` 中贡献。)"
3224
3258
3225
3259
#: ../../whatsnew/3.5.rst:2129
3226
3260
msgid ""
0 commit comments