Skip to content

Optimise pathlib.Path.relative_to() #112405

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.13only 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