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

Skip to content

Commit c80c0c2

Browse files
[po] auto sync
1 parent f2b2c33 commit c80c0c2

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.89%", "updated_at": "2024-03-07T00:28:13Z"}
1+
{"translation": "91.91%", "updated_at": "2024-03-07T01:27:56Z"}

whatsnew/3.5.po

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,12 +2723,20 @@ msgid ""
27232723
"socket timeout is now the maximum total duration of the method. (Contributed"
27242724
" by Victor Stinner in :issue:`23853`.)"
27252725
msgstr ""
2726+
":class:`~ssl.SSLSocket` 类的 :meth:`SSLSocket.do_handshake() "
2727+
"<ssl.SSLSocket.do_handshake>`, :meth:`SSLSocket.read() "
2728+
"<ssl.SSLSocket.read>`, :meth:`SSLSocket.shutdown() <ssl.SSLSocket.shutdown>`"
2729+
" 和 :meth:`SSLSocket.write() <ssl.SSLSocket.write>` "
2730+
"方法在每次接收或发送字节数据时将不再重置套接字超时。 现在套接字超时将为方法的最长运行时间。 (由 Victor Stinner 在 "
2731+
":issue:`23853` 中贡献。)"
27262732

27272733
#: ../../whatsnew/3.5.rst:1822
27282734
msgid ""
27292735
"The :func:`~ssl.match_hostname` function now supports matching of IP "
27302736
"addresses. (Contributed by Antoine Pitrou in :issue:`23239`.)"
27312737
msgstr ""
2738+
"现在 :func:`~ssl.match_hostname` 函数也支持 IP 地址的匹配。 (由 Antoine Pitrou 在 "
2739+
":issue:`23239` 中贡献。)"
27322740

27332741
#: ../../whatsnew/3.5.rst:1827
27342742
msgid "sqlite3"
@@ -2741,6 +2749,9 @@ msgid ""
27412749
"Claudiu Popa in :issue:`10203`; by Lucas Sinclair, Jessica McKellar, and "
27422750
"Serhiy Storchaka in :issue:`13583`.)"
27432751
msgstr ""
2752+
"现在 :class:`~sqlite3.Row` 类可完整支持序列协议,特别是 :func:`reversed` 迭代和切片索引。 (由 Claudiu"
2753+
" Popa 在 :issue:`10203` 中贡献;由 Lucas Sinclair, Jessica McKellar 和 Serhiy "
2754+
"Storchaka 在 :issue:`13583` 中贡献。)"
27442755

27452756
#: ../../whatsnew/3.5.rst:1838
27462757
msgid "subprocess"
@@ -2755,6 +2766,10 @@ msgid ""
27552766
" does not need to maintain compatibility with earlier Python versions. "
27562767
"(Contributed by Thomas Kluyver in :issue:`23342`.)"
27572768
msgstr ""
2769+
"新增了 :func:`~subprocess.run` 函数。 它可运行指定的命令并返回一个 "
2770+
":class:`~subprocess.CompletedProcess` 对象,该对象表示已结束的进程。 这个新 API 有更好的一致性并且是在 "
2771+
"Python 中发起调用子进程的推荐方式,它不需要维持与更早的 Python 的兼容性。 (由 Thomas Kluyver 在 "
2772+
":issue:`23342` 中贡献。)"
27582773

27592774
#: ../../whatsnew/3.5.rst:1864
27602775
msgid "sys"
@@ -2770,13 +2785,19 @@ msgid ""
27702785
"intended for debugging purposes only. (Contributed by Yury Selivanov in "
27712786
":issue:`24017`.)"
27722787
msgstr ""
2788+
"新增的 :func:`~sys.set_coroutine_wrapper` 函数允许设置一个要在 :term:`协程对象 <coroutine>` 被"
2789+
" :keyword:`async def` 函数创建时被调用的全局钩子。 可以使用相应的 "
2790+
":func:`~sys.get_coroutine_wrapper` 来获取当前设置的包装器。 这两个函数均为 :term:`暂定状态 "
2791+
"<provisional API>`,并应当仅用于调试目的。 (由 Yury Selivanov 在 :issue:`24017` 中贡献。)"
27732792

27742793
#: ../../whatsnew/3.5.rst:1874
27752794
msgid ""
27762795
"A new :func:`~sys.is_finalizing` function can be used to check if the Python"
27772796
" interpreter is :term:`shutting down <interpreter shutdown>`. (Contributed "
27782797
"by Antoine Pitrou in :issue:`22696`.)"
27792798
msgstr ""
2799+
"新增的 :func:`~sys.is_finalizing` 函数可用于检测 Python 解释器是否 :term:`正在关闭 <interpreter"
2800+
" shutdown>`。 (由 Antoine Pitrou 在 :issue:`22696` 中贡献。)"
27802801

27812802
#: ../../whatsnew/3.5.rst:1880
27822803
msgid "sysconfig"
@@ -2814,6 +2835,11 @@ msgid ""
28142835
"prior to 3.5), they will be owned by the named user and group in the "
28152836
"tarfile. (Contributed by Michael Vogt and Eric Smith in :issue:`23193`.)"
28162837
msgstr ""
2838+
"现在 :meth:`TarFile.extractall() <tarfile.TarFile.extractall>` 和 "
2839+
":meth:`TarFile.extract() <tarfile.TarFile.extract>` 方法可接受关键字参数 "
2840+
"*numeric_owner*。 如果设为 ``True``,解压的文件和目录将归属于 tar 文件保存的数字 ``uid`` 和 ``gid``。 "
2841+
"如果设为 ``False`` (默认值,也是 3.5 之前版本的行为),则它们将归属于 tar 文件保存的用户和组名称。 (由 Michael Vogt"
2842+
" 和 Eric Smith 在 :issue:`23193` 中贡献。)"
28172843

28182844
#: ../../whatsnew/3.5.rst:1901
28192845
msgid ""
@@ -2822,6 +2848,9 @@ msgid ""
28222848
"by :meth:`TarFile.getmembers() <tarfile.TarFile.getmembers>`. (Contributed "
28232849
"by Serhiy Storchaka in :issue:`21549`.)"
28242850
msgstr ""
2851+
"现在 :meth:`TarFile.list() <tarfile.TarFile.list>` 接受可选的 *members* 关键字参数,它可被设为"
2852+
" :meth:`TarFile.getmembers() <tarfile.TarFile.getmembers>` 所返回的列表的一个子集。 (由 "
2853+
"Serhiy Storchaka 在 :issue:`21549` 中贡献。)"
28252854

28262855
#: ../../whatsnew/3.5.rst:1908
28272856
msgid "threading"

0 commit comments

Comments
 (0)
0