8000 [po] auto sync · python/python-docs-zh-cn@aba1a7a · GitHub
[go: up one dir, main page]

Skip to content

Commit aba1a7a

Browse files
[po] auto sync
1 parent 87c0d45 commit aba1a7a

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.86%", "updated_at": "2024-03-05T08:24:21Z"}
1+
{"translation": "91.89%", "updated_at": "2024-03-06T10:23:49Z"}

whatsnew/3.5.po

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,8 @@ msgid ""
25012501
"way to implement custom authentication mechanisms. (Contributed by Milan "
25022502
"Oberkirch in :issue:`15014`.)"
25032503
msgstr ""
2504+
"新增的 :meth:`SMTP.auth() <smtplib.SMTP.auth>` 方法为实现自定义身份验证机制提供了一个便捷的方式。 (由 "
2505+
"Milan Oberkirch 在 :issue:`15014` 中贡献。)"
25042506

25052507
#: ../../whatsnew/3.5.rst:1704
25062508
msgid ""
@@ -2509,6 +2511,9 @@ msgid ""
25092511
"messages. (Contributed by Gavin Chappell and Maciej Szulik in "
25102512
":issue:`16914`.)"
25112513
msgstr ""
2514+
"现在 :meth:`SMTP.set_debuglevel() <smtplib.SMTP.set_debuglevel>` 方法可接受额外的 "
2515+
"debuglevel (2),它将在调试消息中启用时间戳。 (由 Gavin Chappell 和 Maciej Szulik 在 "
2516+
":issue:`16914` 中贡献。)"
25122517

25132518
#: ../../whatsnew/3.5.rst:1708
25142519
msgid ""
@@ -2517,6 +2522,9 @@ msgid ""
25172522
":rfc:`6531` (SMTPUTF8). (Contributed by Milan Oberkirch and R. David Murray "
25182523
"in :issue:`22027`.)"
25192524
msgstr ""
2525+
"现在 :meth:`SMTP.sendmail() <smtplib.SMTP.sendmail>` 和 "
2526+
":meth:`SMTP.send_message() <smtplib.SMTP.send_message>` 方法均支持 :rfc:`6531` "
2527+
"(SMTPUTF8)。 (由 Milan Oberkirch 和 R. David Murray 在 :issue:`22027` 中贡献。)"
25202528

25212529
#: ../../whatsnew/3.5.rst:1715
25222530
msgid "sndhdr"
@@ -2539,7 +2547,7 @@ msgstr "socket"
25392547
msgid ""
25402548
"Functions with timeouts now use a monotonic clock, instead of a system "
25412549
"clock. (Contributed by Victor Stinner in :issue:`22043`.)"
2542-
msgstr ""
2550+
msgstr "现在函数的超时设置将使用单调时钟,而不是系统时钟。 (由 Victor Stinner 在 :issue:`22043` 中贡献。)"
25432551

25442552
#: ../../whatsnew/3.5.rst:1728
25452553
msgid ""
@@ -2549,6 +2557,9 @@ msgid ""
25492557
" times faster than when using plain :meth:`socket.send() "
25502558
"<socket.socket.send>`. (Contributed by Giampaolo Rodola' in :issue:`17552`.)"
25512559
msgstr ""
2560+
"新增的 :meth:`socket.sendfile() <socket.socket.sendfile>` 方法允许在 UNIX 上使用高性能的 "
2561+
":func:`os.sendfile` 函数通过套接字发送文件,使得上传速度比使用简单的 :meth:`socket.send() "
2562+
"<socket.socket.send>` 快 2 至 3 倍。 (由 Giampaolo Rodola' 在 :issue:`17552` 中贡献。)"
25522563

25532564
#: ../../whatsnew/3.5.rst:1734
25542565
msgid ""
@@ -2557,6 +2568,8 @@ msgid ""
25572568
"timeout is now the maximum total duration to send all data. (Contributed by "
25582569
"Victor Stinner in :issue:`23853`.)"
25592570
msgstr ""
2571+
":meth:`socket.sendall() <socket.socket.sendall>` 方法每次接受或发送字节数据时将不再重置套接字超时。 "
2572+
"现在套接字超时将为发送所有数据最大总计持续时间。 (由 Victor Stinner 在 :issue:`23853` 中贡献。)"
25602573

25612574
#: ../../whatsnew/3.5.rst:1739
25622575
msgid ""
@@ -2565,6 +2578,9 @@ msgid ""
25652578
"<socket.SOMAXCONN>` or to ``128``, whichever is less. (Contributed by "
25662579
"Charles-François Natali in :issue:`21455`.)"
25672580
msgstr ""
2581+
"现在 :meth:`socket.listen() <socket.socket.listen>` 方法的 *backlog* 参数将是可选的。 "
2582+
"在默认情况下它会被设为 :data:`SOMAXCONN <socket.SOMAXCONN>` 或 ``128``,取其中的较小值。 (由 "
2583+
"Charles-François Natali 在 :issue:`21455` 中贡献。)"
25682584

25692585
#: ../../whatsnew/3.5.rst:1746
25702586
msgid "ssl"
@@ -2588,19 +2604,27 @@ msgid ""
25882604
":class:`~ssl.MemoryBIO` class can be used to pass data between Python and an"
25892605
" SSL protocol instance."
25902606
msgstr ""
2607+
"新增了 :class:`~ssl.SSLObject` 类以针对 :class:`~ssl.SSLSocket` 的网络 I/O "
2608+
"能力是非必要或未优化的情况提供 SSL 协议支持。 ``SSLObject`` 代表一个 SSL 协议实例,但不实现任何网络 I/O "
2609+
"方法,而是提供一个内存缓冲区接口。 新增的 :class:`~ssl.MemoryBIO` 类可被用于在 Python 和 SSL "
2610+
"协议实例之间传递数据。"
25912611

25922612
#: ../../whatsnew/3.5.rst:1762
25932613
msgid ""
25942614
"The memory BIO SSL support is primarily intended to be used in frameworks "
25952615
"implementing asynchronous I/O for which :class:`~ssl.SSLSocket`'s readiness "
25962616
"model (\"select/poll\") is inefficient."
25972617
msgstr ""
2618+
"内存 BIO SSL 支持主要被用来为对 :class:`~ssl.SSLSocket` 的就绪模型(\"选择/轮询\")来说效率较低的框架实现异步 "
2619+
"I/O。"
25982620

25992621
#: ../../whatsnew/3.5.rst:1766
26002622
msgid ""
26012623
"A new :meth:`SSLContext.wrap_bio() <ssl.SSLContext.wrap_bio>` method can be "
26022624
"used to create a new ``SSLObject`` instance."
26032625
msgstr ""
2626+
"新增的 :meth:`SSLContext.wrap_bio() <ssl.SSLContext.wrap_bio>` 方法可被用于创建新的 "
2627+
"``SSLObject`` 实例。"
26042628

26052629
#: ../../whatsnew/3.5.rst:1771
26062630
msgid "Application-Layer Protocol Negotiation Support"
@@ -2663,6 +2687,9 @@ msgid ""
26632687
" a non-blocking socket if the operation would block. Previously, it would "
26642688
"return ``0``. (Contributed by Nikolaus Rath in :issue:`20951`.)"
26652689
msgstr ""
2690+
"现在当操作将要阻塞时 :meth:`SSLSocket.send() <ssl.SSLSocket.send>` 方法将在非阻塞的套接字上引发 "
2691+
":exc:`ssl.SSLWantReadError` 或 :exc:`ssl.SSLWantWriteError` 异常。 在之前版本中,它将返回 "
2692+
"``0``。 (由 Nikolaus Rath 在 :issue:`20951` 中贡献。)"
26662693

26672694
#: ../../whatsnew/3.5.rst:1805
26682695
msgid ""
@@ -2671,6 +2698,8 @@ msgid ""
26712698
"value is always an :class:`int`. (Contributed by Akira Li in "
26722699
":issue:`19940`.)"
26732700
msgstr ""
2701+
"根据 :rfc:`5280`,现在 :func:`~ssl.cert_time_to_seconds` 函数会将输入的时间解读为 UTC "
2702+
"而不是本地时间。 此外,其返回值必定为 :class:`int`。 (由 Akira Li 在 :issue:`19940` 中贡献。)"
26742703

26752704
#: ../../whatsnew/3.5.rst:1809
26762705
msgid ""
@@ -3198,6 +3227,9 @@ msgid ""
31983227
"significantly faster for searching 1-character substrings. (Contributed by "
31993228
"Serhiy Storchaka in :issue:`23573`.)"
32003229
msgstr ""
3230+
"现在字符串方法 :meth:`~str.find`, :meth:`~str.rfind`, :meth:`~str.split`, "
3231+
":meth:`~str.partition` 和 :keyword:`in` 字符串运算符在搜索 1 个字符的子字符串时将显著提速。 (由 Serhiy"
3232+
" Storchaka 在 :issue:`23573` 中贡献。)"
32013233

32023234
#: ../../whatsnew/3.5.rst:2173
32033235
msgid "Build and C API Changes"
@@ -3245,6 +3277,8 @@ msgid ""
32453277
"encode error with ``\\N{...}`` escapes. (Contributed by Serhiy Storchaka in "
32463278
":issue:`19676`.)"
32473279
msgstr ""
3280+
"新增的 :c:func:`PyCodec_NameReplaceErrors` 函数可以将 unicode 编码错误替换为 ``\\N{...}`` "
3281+
"转义符号。 (由 Serhiy Storchaka 在 :issue:`19676` 中贡献。)"
32483282

32493283
#: ../../whatsnew/3.5.rst:2194
32503284
msgid ""
@@ -3258,6 +3292,7 @@ msgid ""
32583292
"A new :c:data:`PyExc_RecursionError` exception. (Contributed by Georg Brandl"
32593293
" in :issue:`19235`.)"
32603294
msgstr ""
3295+
"新增 :c:data:`PyExc_RecursionError` 异常。 (由 Georg Brandl 在 :issue:`19235` 中贡献。)"
32613296

32623297
#: ../../whatsnew/3.5.rst:2201
32633298
msgid ""

0 commit comments

Comments
 (0)
0