summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-30 03:28:55 (GMT)
committerGitHub <noreply@github.com>2024-05-30 03:28:55 (GMT)
commit810a09ad3710be60cff9e174be85ca65e76cdbd1 (patch)
tree2ae4fd4efd0045bbab030984c624fa749916f94a /Misc
parent06c62d697a87822690342cd0d99d1cdbeca4ce9d (diff)
downloadcpython-810a09ad3710be60cff9e174be85ca65e76cdbd1.zip
cpython-810a09ad3710be60cff9e174be85ca65e76cdbd1.tar.gz
cpython-810a09ad3710be60cff9e174be85ca65e76cdbd1.tar.bz2
[3.13] GH-89727: Fix `os.fwalk()` recursion error on deep trees (GH-119638) (#119764)
GH-89727: Fix `os.fwalk()` recursion error on deep trees (GH-119638) Implement `os.fwalk()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. (cherry picked from commit 3c890b503c740767d0eb9a0e74b47f17a1e69452) Co-authored-by: Barney Gale <barney.gale@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-05-28-00-56-59.gh-issue-89727._bxoL3.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-05-28-00-56-59.gh-issue-89727._bxoL3.rst b/Misc/NEWS.d/next/Library/2024-05-28-00-56-59.gh-issue-89727._bxoL3.rst
new file mode 100644
index 0000000..92222bc
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-05-28-00-56-59.gh-issue-89727._bxoL3.rst
@@ -0,0 +1,3 @@
+Fix issue with :func:`os.fwalk` where a :exc:`RecursionError` was raised on
+deep directory trees by adjusting the implementation to be iterative instead
+of recursive.