]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46316: optimize `pathlib.Path.iterdir()` (GH-30501)
authorBarney Gale <barney.gale@gmail.com>
Thu, 20 Jan 2022 19:20:00 +0000 (19:20 +0000)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 19:20:00 +0000 (13:20 -0600)
commita1c88414926610a3527398a478c3e63c531dc742
treeead32e529a7c68659940cc32e2e58d24d1ace41d
parentc02e860ee79f29905be6fca997c96bb1a404bb32
bpo-46316: optimize `pathlib.Path.iterdir()` (GH-30501)

`os.listdir()` doesn't return entries for `.` or `..`, so we don't need to
check for them here.
Lib/pathlib.py
Misc/NEWS.d/next/Library/2022-01-09-15-04-56.bpo-46316.AMTyd0.rst [new file with mode: 0644]