]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-102613: Fix recursion error from `pathlib.Path.glob()` (GH-104373)
authorBarney Gale <barney.gale@gmail.com>
Mon, 15 May 2023 17:33:32 +0000 (18:33 +0100)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 17:33:32 +0000 (18:33 +0100)
commitcb88ae635e96d7020ba6187bcfd45ace4dcd8395
tree54a3c649da8786ad5a05ccdc999095a25211d709
parentb378d991f8cd41c33416e590cb83472cce1d6b98
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.
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-05-11-01-07-42.gh-issue-102613.uMsokt.rst [new file with mode: 0644]