diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-05-15 17:33:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 17:33:32 (GMT) |
commit | cb88ae635e96d7020ba6187bcfd45ace4dcd8395 (patch) | |
tree | 54a3c649da8786ad5a05ccdc999095a25211d709 /Misc | |
parent | b378d991f8cd41c33416e590cb83472cce1d6b98 (diff) | |
download | cpython-cb88ae635e96d7020ba6187bcfd45ace4dcd8395.zip cpython-cb88ae635e96d7020ba6187bcfd45ace4dcd8395.tar.gz cpython-cb88ae635e96d7020ba6187bcfd45ace4dcd8395.tar.bz2 |
GH-102613: Fix recursion error from `pathlib.Path.glob()` (GH-104373)
Use `Path.walk()` to implement the recursive wildcard `**`. This method
uses an iterative (rather than recursive) walk - see GH-100282.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-05-11-01-07-42.gh-issue-102613.uMsokt.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-05-11-01-07-42.gh-issue-102613.uMsokt.rst b/Misc/NEWS.d/next/Library/2023-05-11-01-07-42.gh-issue-102613.uMsokt.rst new file mode 100644 index 0000000..3b06964 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-05-11-01-07-42.gh-issue-102613.uMsokt.rst @@ -0,0 +1,2 @@ +Fix issue where :meth:`pathlib.Path.glob` raised :exc:`RecursionError` when +walking deep directory trees. |