]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-125413: Add `pathlib.Path.scandir()` method (#126060)
authorBarney Gale <barney.gale@gmail.com>
Fri, 1 Nov 2024 01:19:01 +0000 (01:19 +0000)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2024 01:19:01 +0000 (01:19 +0000)
commit260843df1bd8a28596b9a377d8266e2547f7eedc
treedb6186d963dee64b6448445ea726a9e611453813
parentd0abd0b826cfa574d1515c6f8459c9901939388f
GH-125413: Add `pathlib.Path.scandir()` method (#126060)

Add `pathlib.Path.scandir()` as a trivial wrapper of `os.scandir()`. This
will be used to implement several `PathBase` methods more efficiently,
including methods that provide `Path.copy()`.
Doc/library/pathlib.rst
Doc/whatsnew/3.14.rst
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/test/test_pathlib/test_pathlib_abc.py
Misc/NEWS.d/next/Library/2024-10-28-01-24-52.gh-issue-125413.Jat5kq.rst [new file with mode: 0644]