@@ -1897,6 +1897,10 @@ msgid ""
1897
1897
" and explicit relative imports could cause obscure failures in child "
1898
1898
"processes. (Contributed by Nick Coghlan in :issue:`19946`.)"
1899
1899
msgstr ""
1900
+ "现在当使用 ``spawn`` 或 ``forkserver`` 启动方法时 :mod:`multiprocessing` 依赖于 "
1901
+ ":mod:`runpy` (它实现了 ``-m`` 开关) 在子进程中正确地初始化 ``__main__``。 "
1902
+ "这解决了一些合并多进程操作中,``-m`` 命令行开关和显式相对导入可能在子进程中导致失败的边缘场景问题。 (由 Nick Coghlan 在 "
1903
+ ":issue:`19946` 中贡献。)"
1900
1904
1901
1905
#: ../../whatsnew/3.4.rst:1158
1902
1906
msgid "operator"
@@ -1909,13 +1913,18 @@ msgid ""
1909
1913
"should be used, as part of the :pep:`424` formal specification of this "
1910
1914
"language feature. (Contributed by Armin Ronacher in :issue:`16148`.)"
1911
1915
msgstr ""
1916
+ "新增的函数 :func:`~operator.length_hint` 提供了应当如何使用 "
1917
+ ":meth:`~object.__length_hint__` 特殊方法的规范实现,作为该语言特性的 :pep:`424` 正式规范说明的一部分。 (由"
1918
+ " Armin Ronacher 在 :issue:`16148` 中贡献。)"
1912
1919
1913
1920
#: ../../whatsnew/3.4.rst:1165
1914
1921
msgid ""
1915
1922
"There is now a pure-python version of the :mod:`operator` module available "
1916
1923
"for reference and for use by alternate implementations of Python. "
1917
1924
"(Contributed by Zachary Ware in :issue:`16694`.)"
1918
1925
msgstr ""
1926
+ "现在提供了一个纯 Python 版本的 :mod:`operator` 模块,可用于参考并由 Python 的其他实现使用。 (由 Zachary "
1927
+ "Ware 在 :issue:`16694` 中贡献。)"
1919
1928
1920
1929
#: ../../whatsnew/3.4.rst:1171
1921
1930
msgid "os"
@@ -1941,6 +1950,10 @@ msgid ""
1941
1950
"Yogesh Chaudhari, Victor Stinner, and Charles-François Natali in "
1942
1951
":issue:`17914`.)"
1943
1952
msgstr ""
1953
+ "新增函数 :func:`~os.cpu_count` 可报告 Python 运行所在平台上可用 CPU 的数量 (如果无法确定数量则为 "
1954
+ "``None``)。 现在 :func:`multiprocessing.cpu_count` 函数是根据此函数实现的。 (由 Trent "
1955
+ "Nelson, Yogesh Chaudhari, Victor Stinner 和 Charles-François Natali 在 "
1956
+ ":issue:`17914` 中贡献。)"
1944
1957
1945
1958
#: ../../whatsnew/3.4.rst:1184
1946
1959
msgid ""
0 commit comments