gh-89727: Fix os.walk RecursionError on deep trees by jonburdo · Pull Request #99803 · python/cpython · GitHub

github.com

Tin mới

jonburdo:iterative-os-walk

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Change shutil.rmtree and os.walk to support very deep hierarchies #89727

: Fix os.walk RecursionError on deep trees

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

awaiting core review

add unit test to ensure os.walk is not affect by recursion limit

move os._walk code to os.walk

fix blurb to mention os.walk

use deque in os.walk

Merge branch 'main' into iterative-os-walk

View reviewed changes

Lib/test/support/__init__.py

Merge branch 'main' into iterative-os-walk

move deque import inside os.walk

rename temp_recursion_limit to set_recursion_limit

Merge branch 'main' into iterative-os-walk

View reviewed changes

switch back to list instead of deque for os.walk stack

View reviewed changes

Apply suggestions from code review

clean up os.walk comments

test correct value in test_walk_above_recursion_limit

set islink and join before loop in os.walk

Merge branch 'main' into iterative-os-walk

View reviewed changes

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

Merge branch 'main' into fastmock

: Fix os.walk RecursionError on deep trees (

Merged main into regmachine branch (