gh-89727: Fix pathlib.Path.walk RecursionError on deep trees by zmievsa · Pull Request #100282 · python/cpython · GitHub

github.com

Tin mới

zmievsa:gh-89727/fix-pathlib.Path.walk-recursion-depth

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

Replace recursion with iteration

netlify Bot commented Dec 15, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.
netlify Bot commented Dec 15, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.

netlify Bot commented Dec 15, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.

There was an error while loading. Please reload this page.

Unify walk and _walk methods

Remove empty typehint

Add test for recursion limit

📜🤖 Added by blurb_it.

Merge branch 'main' into

Fix recursion limit issue in different envs

Merge branch 'gh-89727/fix-pathlib.Path.walk-recursion-depth' of github.com:ovsyanka83/cpython into gh-89727/fix-pathlib.Path.walk-recursion-depth

Make everything consistent with os.walk

View reviewed changes

Remove unused import

View reviewed changes

Merge branch 'main' into

Replace the usage of infinite_recursion with set_recursion_limit

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

View reviewed changes

Update Lib/pathlib.py

View reviewed changes

Merge branch 'main' into

View reviewed changes

Apply suggestions from code review

View reviewed changes

Path.rglob performance issues in deeply nested directories compared to glob.glob(recursive=True) #102613

BOT-3EN: snekbox hits a recusion exceded exception in pathlib when parsing lots of nested directories and 500s python-discord/snekbox#172

Rename stack to paths

View reviewed changes