]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35498: Added slice support to PathLib parents attribute. (GH-11165)
authorJoshua Cannon <joshua.cannon@ni.com>
Fri, 20 Nov 2020 15:40:39 +0000 (09:40 -0600)
committerGitHub <noreply@github.com>
Fri, 20 Nov 2020 15:40:39 +0000 (10:40 -0500)
commit452058448335b39c784af9a047f9c4a1767c0b00
tree689ce4a242fa55ae5ff479fa936596d04d92f3dd
parentd20b7ed9c1fabac3fdebb7ec362fe4f022a54639
bpo-35498: Added slice support to PathLib parents attribute. (GH-11165)

Added slice support to the `pathlib.Path.parents` sequence. For a `Path` `p`, slices of `p.parents` should return the same thing as slices of `tuple(p.parents)`.
Doc/library/pathlib.rst
Doc/whatsnew/3.10.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/ACKS
Misc/NEWS.d/next/Library/2018-12-14-13-29-17.bpo-35498.LEJHl7.rst [new file with mode: 0644]