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)`.
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 9de72bb..2071e7e 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -336,6 +336,8 @@
>>> p.parents[2]
PureWindowsPath('c:/')
+ .. versionchanged:: 3.10
+ Slice support was added.
.. data:: PurePath.parent