Skip to content

gh-89727: Fix os.fwalk RecursionError on deep trees#100347

Closed
jonburdo wants to merge 31 commits intopython:mainfrom
jonburdo:iterative-os-fwalk
Closed

gh-89727: Fix os.fwalk RecursionError on deep trees#100347
jonburdo wants to merge 31 commits intopython:mainfrom
jonburdo:iterative-os-fwalk

Conversation

@jonburdo
Copy link
Contributor

@jonburdo jonburdo commented Dec 19, 2022

Use a stack to implement os.fwalk iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees.

Similar to how this is done for os.walk in #99803

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.