[3.12] GH-89727: Fix `shutil.rmtree()` recursion error on deep trees (GH-119808) by barneygale · Pull Request #119919 · python/cpython

barneygale · GitHub

added 2 commits

June 1, 2024 19:53

…ython#119808

) Implement `shutil._rmtree_safe_fd()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. `shutil._rmtree_unsafe()` was fixed in

a150679

. (cherry picked from commit

53b1981

)

…trees (

pythonGH-119808

) Implement `shutil._rmtree_safe_fd()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. `shutil._rmtree_unsafe()` was fixed in

a150679

.. (cherry picked from commit

53b1981

) Co-authored-by: Barney Gale <[email protected]> Merged

Open