mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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>
This commit is contained in:
parent
ffae93248a
commit
79d2e62c00
7 changed files with 15 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue