Skip to content

Optimise pathlib.Path.relative_to() #112405

Closed
@AlexWaygood

Description

@AlexWaygood

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

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixesperformancePerformance or resource usagetopic-pathlibtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions