@@ -1938,7 +1938,7 @@ msgstr ""
19381938
19391939#: ../../whatsnew/3.6.rst:1274
19401940msgid ":func:`~os.scandir` now supports :class:`bytes` paths on Windows."
1941- msgstr ""
1941+ msgstr "现在 :func:`~os.scandir` 支持 Windows 上的 :class:`bytes` 路径。 "
19421942
19431943#: ../../whatsnew/3.6.rst:1276
19441944msgid ""
@@ -1949,13 +1949,19 @@ msgid ""
19491949"emitted in its destructor. (Contributed by Serhiy Storchaka in "
19501950":issue:`25994`.)"
19511951msgstr ""
1952+ "新增的 :meth:`~os.scandir.close` 方法允许显式地关闭 :func:`~os.scandir` 迭代器。 "
1953+ ":func:`~os.scandir` 迭代器现在支持 :term:`context manager` 协议。 如果一个 :func:`scandir`"
1954+ " 迭代器既没有被耗尽也没有被显式地关闭则会在其析构器中发出 :exc:`ResourceWarning`。 (由 Serhiy Storchaka 在 "
1955+ ":issue:`25994` 中贡献。)"
19521956
19531957#: ../../whatsnew/3.6.rst:1286
19541958msgid ""
19551959"The Linux ``getrandom()`` syscall (get random bytes) is now exposed as the "
19561960"new :func:`os.getrandom` function. (Contributed by Victor Stinner, part of "
19571961"the :pep:`524`)"
19581962msgstr ""
1963+ "Linux ``getrandom()`` 系统调用(获取随机字节数据)现在被暴露为新的 :func:`os.getrandom` 函数。 (由 "
1964+ "Victor Stinner 贡献,为 :pep:`524` 的一部分)"
19591965
19601966#: ../../whatsnew/3.6.rst:1292
19611967msgid "pathlib"
@@ -1966,10 +1972,12 @@ msgid ""
19661972":mod:`pathlib` now supports :term:`path-like objects <path-like object>`. "
19671973"(Contributed by Brett Cannon in :issue:`27186`.)"
19681974msgstr ""
1975+ ":mod:`pathlib` 现在支持 :term:`路径型对象 <path-like object>`。 (由 Brett Cannon 在 "
1976+ ":issue:`27186` 中贡献。)"
19691977
19701978#: ../../whatsnew/3.6.rst:1297
19711979msgid "See the summary of :ref:`PEP 519 <whatsnew36-pep519>` for details."
1972- msgstr ""
1980+ msgstr "请参阅 :ref:`PEP 519 <whatsnew36-pep519>` 的概览了解详情。 "
19731981
19741982#: ../../whatsnew/3.6.rst:1301
19751983msgid "pdb"
0 commit comments