diff options
author | Yaroslav Pankovych <31005942+ypankovych@users.noreply.github.com> | 2020-11-23 20:06:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 20:06:22 (GMT) |
commit | 79d2e62c008446fbbc6f264bb8a30e2d38b6ff58 (patch) | |
tree | 19897f3bf2d3abafff8fbcda7c51bcbb446265b6 /Doc/library/pathlib.rst | |
parent | ffae93248a33cd6fe73d1ea85d6802765bbf56d2 (diff) | |
download | cpython-79d2e62c008446fbbc6f264bb8a30e2d38b6ff58.zip cpython-79d2e62c008446fbbc6f264bb8a30e2d38b6ff58.tar.gz cpython-79d2e62c008446fbbc6f264bb8a30e2d38b6ff58.tar.bz2 |
Added support for negative indexes to PurePath.parents (GH-21799)
This commit also fixes up some of the overlapping documentation changed
in bpo-35498, which added support for indexing with slices.
Fixes bpo-21041.
https://bugs.python.org/issue21041
Co-authored-by: Paul Ganssle <p.ganssle@gmail.com>
Co-authored-by: RĂ©mi Lapeyre <remi.lapeyre@henki.fr>
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r-- | Doc/library/pathlib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 2071e7e..2bbf3aa 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -337,7 +337,7 @@ Pure paths provide the following methods and properties: PureWindowsPath('c:/') .. versionchanged:: 3.10 - Slice support was added. + The parents sequence now supports :term:`slices <slice>` and negative index values. .. data:: PurePath.parent |