# Feature or enhancement ### Proposal: `pathlib.Path.relative_to()` can be significantly optimised by making use of `itertools.chain` ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-112406 <!-- /gh-linked-prs -->
Activity
pythongh-112405: Optimise `pathlib.Path.relative_to`
gh-112405: Optimise `pathlib.Path.relative_to` (#112406)
pythongh-112405: Optimise `pathlib.Path.relative_to` (python#112406)
pythongh-112405: Optimise `pathlib.Path.relative_to` (python#112406)