]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() (#101665)
authorBarney Gale <barney.gale@gmail.com>
Sun, 5 Mar 2023 22:00:56 +0000 (22:00 +0000)
committerGitHub <noreply@github.com>
Sun, 5 Mar 2023 22:00:56 +0000 (22:00 +0000)
commit3572c861d8e8f03c34793608e7e2221e116aaec0
treef40f31085c3e5270604adfea42990743691b1196
parent96e10229292145012bc462a6ab3ce1626c8acf71
GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() (#101665)

GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath

This reduces the time taken to run `PurePath("foo")` by ~15%
Lib/pathlib.py
Misc/NEWS.d/next/Library/2023-02-07-21-16-41.gh-issue-101362.KMQllM.rst [new file with mode: 0644]