@@ -2723,12 +2723,20 @@ msgid ""
2723
2723
"socket timeout is now the maximum total duration of the method. (Contributed"
2724
2724
" by Victor Stinner in :issue:`23853`.)"
2725
2725
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` 中贡献。)"
2726
2732
2727
2733
#: ../../whatsnew/3.5.rst:1822
2728
2734
msgid ""
2729
2735
"The :func:`~ssl.match_hostname` function now supports matching of IP "
2730
2736
"addresses. (Contributed by Antoine Pitrou in :issue:`23239`.)"
2731
2737
msgstr ""
2738
+ "现在 :func:`~ssl.match_hostname` 函数也支持 IP 地址的匹配。 (由 Antoine Pitrou 在 "
2739
+ ":issue:`23239` 中贡献。)"
2732
2740
2733
2741
#: ../../whatsnew/3.5.rst:1827
2734
2742
msgid "sqlite3"
@@ -2741,6 +2749,9 @@ msgid ""
2741
2749
"Claudiu Popa in :issue:`10203`; by Lucas Sinclair, Jessica McKellar, and "
2742
2750
"Serhiy Storchaka in :issue:`13583`.)"
2743
2751
msgstr ""
2752
+ "现在 :class:`~sqlite3.Row` 类可完整支持序列协议,特别是 :func:`reversed` 迭代和切片索引。 (由 Claudiu"
2753
+ " Popa 在 :issue:`10203` 中贡献;由 Lucas Sinclair, Jessica McKellar 和 Serhiy "
2754
+ "Storchaka 在 :issue:`13583` 中贡献。)"
2744
2755
2745
2756
#: ../../whatsnew/3.5.rst:1838
2746
2757
msgid "subprocess"
@@ -2755,6 +2766,10 @@ msgid ""
2755
2766
" does not need to maintain compatibility with earlier Python versions. "
2756
2767
"(Contributed by Thomas Kluyver in :issue:`23342`.)"
2757
2768
msgstr ""
2769
+ "新增了 :func:`~subprocess.run` 函数。 它可运行指定的命令并返回一个 "
2770
+ ":class:`~subprocess.CompletedProcess` 对象,该对象表示已结束的进程。 这个新 API 有更好的一致性并且是在 "
2771
+ "Python 中发起调用子进程的推荐方式,它不需要维持与更早的 Python 的兼容性。 (由 Thomas Kluyver 在 "
2772
+ ":issue:`23342` 中贡献。)"
2758
2773
2759
2774
#: ../../whatsnew/3.5.rst:1864
2760
2775
msgid "sys"
@@ -2770,13 +2785,19 @@ msgid ""
2770
2785
"intended for debugging purposes only. (Contributed by Yury Selivanov in "
2771
2786
":issue:`24017`.)"
2772
2787
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` 中贡献。)"
2773
2792
2774
2793
#: ../../whatsnew/3.5.rst:1874
2775
2794
msgid ""
2776
2795
"A new :func:`~sys.is_finalizing` function can be used to check if the Python"
2777
2796
" interpreter is :term:`shutting down <interpreter shutdown>`. (Contributed "
2778
2797
"by Antoine Pitrou in :issue:`22696`.)"
2779
2798
msgstr ""
2799
+ "新增的 :func:`~sys.is_finalizing` 函数可用于检测 Python 解释器是否 :term:`正在关闭 <interpreter"
2800
+ " shutdown>`。 (由 Antoine Pitrou 在 :issue:`22696` 中贡献。)"
2780
2801
2781
2802
#: ../../whatsnew/3.5.rst:1880
2782
2803
msgid "sysconfig"
@@ -2814,6 +2835,11 @@ msgid ""
2814
2835
"prior to 3.5), they will be owned by the named user and group in the "
2815
2836
"tarfile. (Contributed by Michael Vogt and Eric Smith in :issue:`23193`.)"
2816
2837
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` 中贡献。)"
2817
2843
2818
2844
#: ../../whatsnew/3.5.rst:1901
2819
2845
msgid ""
@@ -2822,6 +2848,9 @@ msgid ""
2822
2848
"by :meth:`TarFile.getmembers() <tarfile.TarFile.getmembers>`. (Contributed "
2823
2849
"by Serhiy Storchaka in :issue:`21549`.)"
2824
2850
msgstr ""
2851
+ "现在 :meth:`TarFile.list() <tarfile.TarFile.list>` 接受可选的 *members* 关键字参数,它可被设为"
2852
+ " :meth:`TarFile.getmembers() <tarfile.TarFile.getmembers>` 所返回的列表的一个子集。 (由 "
2853
+ "Serhiy Storchaka 在 :issue:`21549` 中贡献。)"
2825
2854
2826
2855
#: ../../whatsnew/3.5.rst:1908
2827
2856
msgid "threading"
0 commit comments