diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-09-04 18:19:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 18:19:30 (GMT) |
commit | 306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64 (patch) | |
tree | acbc10a13a6aa79beffaabced6b1f0155976e631 /Doc/library/pathlib.rst | |
parent | 81715808716198471fbca0a3db42ac408468dbc5 (diff) | |
download | cpython-306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64.zip cpython-306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64.tar.gz cpython-306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64.tar.bz2 |
bpo-40486: Specify what happens if directory content change diring iteration (GH-22025)
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r-- | Doc/library/pathlib.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 04810f5..23486b6 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -890,6 +890,11 @@ call fails (for example because the path doesn't exist). PosixPath('docs/_static') PosixPath('docs/Makefile') + The children are yielded in arbitrary order, and the special entries + ``'.'`` and ``'..'`` are not included. If a file is removed from or added + to the directory after creating the iterator, whether an path object for + that file be included is unspecified. + .. method:: Path.lchmod(mode) Like :meth:`Path.chmod` but, if the path points to a symbolic link, the |