@@ -1928,7 +1928,7 @@ msgstr ""
1928
1928
1929
1929
#: ../../whatsnew/3.6.rst:1274
1930
1930
msgid ":func:`~os.scandir` now supports :class:`bytes` paths on Windows."
1931
- msgstr ""
1931
+ msgstr "现在 :func:`~os.scandir` 支持 Windows 上的 :class:`bytes` 路径。 "
1932
1932
1933
1933
#: ../../whatsnew/3.6.rst:1276
1934
1934
msgid ""
@@ -1939,13 +1939,19 @@ msgid ""
1939
1939
"emitted in its destructor. (Contributed by Serhiy Storchaka in "
1940
1940
":issue:`25994`.)"
1941
1941
msgstr ""
1942
+ "新增的 :meth:`~os.scandir.close` 方法允许显式地关闭 :func:`~os.scandir` 迭代器。 "
1943
+ ":func:`~os.scandir` 迭代器现在支持 :term:`context manager` 协议。 如果一个 :func:`scandir`"
1944
+ " 迭代器既没有被耗尽也没有被显式地关闭则会在其析构器中发出 :exc:`ResourceWarning`。 (由 Serhiy Storchaka 在 "
1945
+ ":issue:`25994` 中贡献。)"
1942
1946
1943
1947
#: ../../whatsnew/3.6.rst:1286
1944
1948
msgid ""
1945
1949
"The Linux ``getrandom()`` syscall (get random bytes) is now exposed as the "
1946
1950
"new :func:`os.getrandom` function. (Contributed by Victor Stinner, part of "
1947
1951
"the :pep:`524`)"
1948
1952
msgstr ""
1953
+ "Linux ``getrandom()`` 系统调用(获取随机字节数据)现在被暴露为新的 :func:`os.getrandom` 函数。 (由 "
1954
+ "Victor Stinner 贡献,为 :pep:`524` 的一部分)"
1949
1955
1950
1956
#: ../../whatsnew/3.6.rst:1292
1951
1957
msgid "pathlib"
@@ -1956,10 +1962,12 @@ msgid ""
1956
1962
":mod:`pathlib` now supports :term:`path-like objects <path-like object>`. "
1957
1963
"(Contributed by Brett Cannon in :issue:`27186`.)"
1958
1964
msgstr ""
1965
+ ":mod:`pathlib` 现在支持 :term:`路径型对象 <path-like object>`。 (由 Brett Cannon 在 "
1966
+ ":issue:`27186` 中贡献。)"
1959
1967
1960
1968
#: ../../whatsnew/3.6.rst:1297
1961
1969
msgid "See the summary of :ref:`PEP 519 <whatsnew36-pep519>` for details."
1962
- msgstr ""
1970
+ msgstr "请参阅 :ref:`PEP 519 <whatsnew36-pep519>` 的概览了解详情。 "
1963
1971
1964
1972
#: ../../whatsnew/3.6.rst:1301
1965
1973
msgid "pdb"
0 commit comments