summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-11-01 01:19:01 (GMT)
committerGitHub <noreply@github.com>2024-11-01 01:19:01 (GMT)
commit260843df1bd8a28596b9a377d8266e2547f7eedc (patch)
treedb6186d963dee64b6448445ea726a9e611453813 /Misc/NEWS.d
parentd0abd0b826cfa574d1515c6f8459c9901939388f (diff)
downloadcpython-260843df1bd8a28596b9a377d8266e2547f7eedc.zip
cpython-260843df1bd8a28596b9a377d8266e2547f7eedc.tar.gz
cpython-260843df1bd8a28596b9a377d8266e2547f7eedc.tar.bz2
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()`.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2024-10-28-01-24-52.gh-issue-125413.Jat5kq.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-28-01-24-52.gh-issue-125413.Jat5kq.rst b/Misc/NEWS.d/next/Library/2024-10-28-01-24-52.gh-issue-125413.Jat5kq.rst
new file mode 100644
index 0000000..ddf1f97
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-10-28-01-24-52.gh-issue-125413.Jat5kq.rst
@@ -0,0 +1,3 @@
+Add :meth:`pathlib.Path.scandir` method to efficiently fetch directory
+children and their file attributes. This is a trivial wrapper of
+:func:`os.scandir`.