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