]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-89727: Fix `os.fwalk()` recursion error on deep trees (#119638)
authorBarney Gale <barney.gale@gmail.com>
Thu, 30 May 2024 03:05:36 +0000 (04:05 +0100)
committerGitHub <noreply@github.com>
Thu, 30 May 2024 03:05:36 +0000 (03:05 +0000)
commit3c890b503c740767d0eb9a0e74b47f17a1e69452
treea29c69300686ec574c8c6de350fd38699b9b1c01
parent2cc3502f98bb9aea386ab55443fc077ddcdde91d
GH-89727: Fix `os.fwalk()` recursion error on deep trees (#119638)

Implement `os.fwalk()` using a list as a stack to avoid emitting recursion
errors on deeply nested trees.
Lib/os.py
Lib/test/test_os.py
Misc/NEWS.d/next/Library/2024-05-28-00-56-59.gh-issue-89727._bxoL3.rst [new file with mode: 0644]