GH-89727: Partially fix `shutil.rmtree()` recursion error on deep trees by barneygale · Pull Request #119634 · python/cpython

barneygale · GitHub

…ep trees Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Open

Co-authored-by: Jelle Zijlstra <[email protected]>

…PTTW.rst Co-authored-by: Jelle Zijlstra <[email protected]>

miss-islington

pushed a commit to miss-islington/cpython that referenced this pull request

May 29, 2024

…ep trees (

pythonGH-119634

) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. (cherry picked from commit

a150679

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

barneygale

added a commit to barneygale/cpython that referenced this pull request

May 29, 2024

…ep trees (

python#119634

) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit

a150679

)

barneygale

added a commit to barneygale/cpython that referenced this pull request

May 29, 2024

…r on deep trees (

pythonGH-119634

) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Co-authored-by: Jelle Zijlstra <[email protected]>. (cherry picked from commit

a150679

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

barneygale

added a commit that referenced this pull request

May 29, 2024

…eep trees (

GH-119634

) (

#119748

)

GH-89727

: Partially fix `shutil.rmtree()` recursion error on deep trees (

GH-119634

) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. (cherry picked from commit

a150679

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

barneygale

added a commit that referenced this pull request

May 29, 2024

…eep trees (

GH-119634

) (

#119749

) *

GH-89727

: Partially fix `shutil.rmtree()` recursion error on deep trees (

#119634

) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit

a150679

) Merged

noahbkim

pushed a commit to hudson-trading/cpython that referenced this pull request

Jul 11, 2024

…ep trees (

python#119634

) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Co-authored-by: Jelle Zijlstra <[email protected]>

estyxx

pushed a commit to estyxx/cpython that referenced this pull request

Jul 17, 2024

…ep trees (

python#119634

) Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Co-authored-by: Jelle Zijlstra <[email protected]>