]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-78707: deprecate passing >1 argument to `PurePath.[is_]relative_to()` (GH-94469)
authorBarney Gale <barney.gale@gmail.com>
Sat, 17 Dec 2022 00:14:27 +0000 (00:14 +0000)
committerGitHub <noreply@github.com>
Sat, 17 Dec 2022 00:14:27 +0000 (16:14 -0800)
commit5a991da32961ef5780996d58b8816d5f2085f540
tree604f148e9a3578ae854c8cd6eeb293d44a5042a1
parent432117cd1f59c76d97da2eaff55a7d758301dbc7
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.
Doc/library/pathlib.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2022-07-01-00-01-22.gh-issue-78707.fHGSuM.rst [new file with mode: 0644]