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

github.com

Tin mới

jonburdo:iterative-os-fwalk

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

use _WalkAction enum

Merge branch 'main' into iterative-os-fwalk

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

View reviewed changes

remove enum from os

: Fix os.walk RecursionError on deep trees (

: re docs: Add more specific definition of \w (

: Add ssl.OP_LEGACY_SERVER_CONNECT (

: Change lower-case and upper-case to match recommendat…

: Fix ref cycle in

: Fix inconsistency in

Clarify that every thread has its own default context in contextvars (

run test_walk_above_recursion_limit for fwalk

set stack outside try-except in fwalk

Merge branch 'main' into iterative-os-fwalk

Merge branch 'main' into iterative-os-fwalk

add more reliable file descriptor closing logic in os.fwalk

use a separate fd_stack for simpler cleanup and error handling

Merge branch 'main' into iterative-os-fwalk

run test_walk_above_recursion_limit with fwalk tests

View reviewed changes

Merge branch 'main' into iterative-os-fwalk

make sure we don't close the same fd twice

revert to using a single stack instead of a separate ffd stack

remove unused variable

View reviewed changes

Learn more about hiding disruptive comments

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

get rid of unnecessary os._fwalk