Skip to content

gh-89727: Fix os.walk RecursionError on deep trees#99803

Merged
JelleZijlstra merged 16 commits into
python:mainfrom
jonburdo:iterative-os-walk
Dec 19, 2022
Merged

gh-89727: Fix os.walk RecursionError on deep trees#99803
JelleZijlstra merged 16 commits into
python:mainfrom
jonburdo:iterative-os-walk

Conversation

@jonburdo

@jonburdo jonburdo commented Nov 27, 2022

Copy link
Copy Markdown
Contributor

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants