Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

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

@bedevere-bot
Copy link

bedevere-bot commented Dec 19, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@bedevere-bot
Copy link

bedevere-bot commented Dec 19, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@jonburdo
Copy link
Contributor Author

jonburdo commented Dec 19, 2022

TODO:

Lib/os.py Outdated Show resolved Hide resolved
@AlexWaygood AlexWaygood removed request for a team and 1st1 Dec 20, 2022
Lib/os.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants