From 7c05f258c1f5f9569be8d966341b8a979d54bdb8 Mon Sep 17 00:00:00 2001 From: Stanislav Zmiev Date: Sat, 30 Jul 2022 18:10:14 +0400 Subject: [PATCH] Add what's new section for pathlib.path.walk --- Doc/whatsnew/3.12.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 033de1780b3d18..cddd820bec4080 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -90,6 +90,12 @@ New Modules Improved Modules ================ +pathlib +------- +* Add :meth:`~pathlib.Path.walk` for walking the directory trees and generating + all file or directory names within them, similar to :func:`os.walk`. + (Contributed by Stanislav Zmiev in :gh:`46227`.) + Optimizations =============