diff options
| author | Joshua Cannon <joshua.cannon@ni.com> | 2020-11-20 09:40:39 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-20 10:40:39 -0500 |
| commit | 452058448335b39c784af9a047f9c4a1767c0b00 (patch) | |
| tree | 689ce4a242fa55ae5ff479fa936596d04d92f3dd /Doc/whatsnew | |
| parent | d20b7ed9c1fabac3fdebb7ec362fe4f022a54639 (diff) | |
| download | cpython-git-452058448335b39c784af9a047f9c4a1767c0b00.tar.gz | |
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)`.
Diffstat (limited to 'Doc/whatsnew')
| -rw-r--r-- | Doc/whatsnew/3.10.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 826d12704a..16cb7efe29 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -244,6 +244,12 @@ descriptors without copying between kernel address space and user address space, where one of the file descriptors must refer to a pipe. (Contributed by Pablo Galindo in :issue:`41625`.) +pathlib +------- + +Added slice support to :meth:`~pathlib.Path.parents`. +(Contributed by Joshua Cannon in :issue:`35498`) + py_compile ---------- |
