summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2022-12-17 00:14:27 (GMT)
committerGitHub <noreply@github.com>2022-12-17 00:14:27 (GMT)
commit5a991da32961ef5780996d58b8816d5f2085f540 (patch)
tree604f148e9a3578ae854c8cd6eeb293d44a5042a1 /Misc/NEWS.d
parent432117cd1f59c76d97da2eaff55a7d758301dbc7 (diff)
downloadcpython-5a991da32961ef5780996d58b8816d5f2085f540.zip
cpython-5a991da32961ef5780996d58b8816d5f2085f540.tar.gz
cpython-5a991da32961ef5780996d58b8816d5f2085f540.tar.bz2
gh-78707: deprecate passing >1 argument to `PurePath.[is_]relative_to()` (GH-94469)
This brings `relative_to()` and `is_relative_to()` more in line with other pathlib methods like `rename()` and `symlink_to()`. Resolves #78707.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2022-07-01-00-01-22.gh-issue-78707.fHGSuM.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-07-01-00-01-22.gh-issue-78707.fHGSuM.rst b/Misc/NEWS.d/next/Library/2022-07-01-00-01-22.gh-issue-78707.fHGSuM.rst
new file mode 100644
index 0000000..c490a3c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-07-01-00-01-22.gh-issue-78707.fHGSuM.rst
@@ -0,0 +1,3 @@
+Deprecate passing more than one positional argument to
+:meth:`pathlib.PurePath.relative_to` and
+:meth:`~pathlib.PurePath.is_relative_to`.