You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Speed up pathlib.PurePath.[is_]relative_to() #111429
Both methods call self.with_segments() unconditionally. This can be skipped if the other argument is already an instance of PurePath, and no further (deprecated) positional arguments are given.
Also, relative_to() can inline the core of the is_relative_to() check to avoid the type/deprecated args checks.
Activity
pythonGH-111429: Speed up `pathlib.PurePath.[is_]relative_to()`
GH-111429: Speed up `pathlib.PurePath.[is_]relative_to()` (#111431)
barneygale commentedon Nov 12, 2023
Resolved in 3.13 / 6e93540 / #111431
pythonGH-111429: Speed up `pathlib.PurePath.[is_]relative_to()` (pyth…
pythonGH-111429: Speed up `pathlib.PurePath.[is_]relative_to()` (pyth…