Skip to content

[3.13] GH-119169: Implement pathlib.Path.walk() using os.walk() (GH-119573) #119750

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

Merged
merged 1 commit into from
May 29, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 29, 2024

For silly reasons, pathlib's generic implementation of walk() currently
resides in glob._Globber. This commit moves it into
pathlib._abc.PathBase.walk() where it really belongs, and makes
pathlib.Path.walk() call os.walk().
(cherry picked from commit 7ff61f5)

Co-authored-by: Barney Gale [email protected]

…ythonGH-119573)

For silly reasons, pathlib's generic implementation of `walk()` currently
resides in `glob._Globber`. This commit moves it into
`pathlib._abc.PathBase.walk()` where it really belongs, and makes
`pathlib.Path.walk()` call `os.walk()`.
(cherry picked from commit 7ff61f5)

Co-authored-by: Barney Gale <[email protected]>
@barneygale barneygale enabled auto-merge (squash) May 29, 2024 20:51
@barneygale barneygale merged commit a7aa7c4 into python:3.13 May 29, 2024
34 checks passed
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.

2 participants