| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I tried to implement this atop os.fwalk(), but I couldn't get it to work. There's not enough context around exceptions raised from os.fwalk() basically. |
Sorry, something went wrong.
There was a problem hiding this comment.
I like how this is more concise and protects against recursion errors. It's somewhat less obvious what's going on here now, I left some comments.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. I'll let Jelle comment and merge.
Sorry, something went wrong.
|
Thanks very much for the reviews, both! @JelleZijlstra can I merge, or would you like to do the honours as Łukasz suggested? This will hit a conflict when backported to 3.12 due to a difference in FileNotFoundError handling. Should be an easy fix. |
Sorry, something went wrong.
|
Feel free to merge yourself! |
Sorry, something went wrong.
|
Super. Thanks again! |
Sorry, something went wrong.
|
Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
…ythonGH-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 <barney.gale@gmail.com>
|
GH-119918 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
|
Sorry, @barneygale, I could not cleanly backport this to 3.12 due to a conflict. cherry_picker 53b1981fb0cda6c656069e992f172fc6aad7c99c 3.12 |
Sorry, something went wrong.
…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 <barney.gale@gmail.com>
|
GH-119919 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
…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.
…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.
…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.
| Back | FazBrowse Home | New Git URL |
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 #119634.