SIGN IN SIGN UP

GH-76846, GH-85281: Call `__new__()` and `__init__()` on pathlib subclasses (GH-102789)

Fix an issue where `__new__()` and `__init__()` were not called on subclasses of `pathlib.PurePath` and `Path` in some circumstances.

Paths are now normalized on-demand. This speeds up path construction, `p.joinpath(q)`, and `p / q`.

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
B
Barney Gale committed
11c302055a2aab5373c2829d1a8610a64e72ab24
Parent: 2a72125
Committed by GitHub <noreply@github.com> on 4/3/2023, 6:57:11 PM