summaryrefslogtreecommitdiffstats
path: root/Python/getcompiler.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2023-04-03 18:57:11 (GMT)
committerGitHub <noreply@github.com>2023-04-03 18:57:11 (GMT)
commit11c302055a2aab5373c2829d1a8610a64e72ab24 (patch)
tree1d6066d3aa18e16fea55587d69cb3257ee9521a1 /Python/getcompiler.c
parent2a721258a199e9bcdcee2069719ad9c8f8c0d030 (diff)
downloadcpython-11c302055a2aab5373c2829d1a8610a64e72ab24.zip
cpython-11c302055a2aab5373c2829d1a8610a64e72ab24.tar.gz
cpython-11c302055a2aab5373c2829d1a8610a64e72ab24.tar.bz2
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>
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions