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

Skip to content

Commit 82a14e6

Browse files
[po] auto sync
1 parent 9db49a9 commit 82a14e6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.78%", "updated_at": "2024-02-21T07:09:01Z"}
1+
{"translation": "90.79%", "updated_at": "2024-02-21T15:09:23Z"}

whatsnew/3.5.po

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,13 +566,16 @@ msgid ""
566566
" reducing the number of calls to :func:`os.stat` required to walk a "
567567
"directory tree."
568568
msgstr ""
569+
":pep:`471` 向标准库添加了一个新的目录迭代函数 :func:`os.scandir`。 此外,:func:`os.walk` 现在是使用 "
570+
"``scandir`` 来实现,这使它在 POSIX 系统上可提速 3 至 5 倍而在 Windows 系统上可提速 7 至 20 倍。 "
571+
"这样的效果主要是通过大幅减少遍历目录树所需调用 :func:`os.stat` 的次数来达成的。"
569572

570573
#: ../../whatsnew/3.5.rst:457
571574
msgid ""
572575
"Additionally, ``scandir`` returns an iterator, as opposed to returning a "
573576
"list of file names, which improves memory efficiency when iterating over "
574577
"very large directories."
575-
msgstr ""
578+
msgstr "此外,``scandir`` 是返回一个迭代器,而不是返回一个文件名列表,这提升了迭代非常大的目录时的内存效率。"
576579

577580
#: ../../whatsnew/3.5.rst:461
578581
msgid ""
@@ -581,12 +584,14 @@ msgid ""
581584
"with ``'.'``. The :meth:`entry.is_file() <os.DirEntry.is_file>` call will "
582585
"generally not make an additional system call::"
583586
msgstr ""
587+
"下面的例子演示了 :func:`os.scandir` 的简单用法,显示给定 *path* 中所有不以 ``'.'`` 开头的文件(不包括目录)。 "
588+
":meth:`entry.is_file() <os.DirEntry.is_file>` 调用通常不会执行额外的系统调用::"
584589

585590
#: ../../whatsnew/3.5.rst:472
586591
msgid ""
587592
":pep:`471` -- os.scandir() function -- a better and faster directory "
588593
"iterator"
589-
msgstr ""
594+
msgstr ":pep:`471` -- os.scandir() 函数 -- 一个更好且更快的目录迭代器"
590595

591596
#: ../../whatsnew/3.5.rst:473
592597
msgid ""

0 commit comments

Comments
 (0)
0