Sorry, something went wrong.
✅ Deploy Preview for python-cpython-preview canceled.
|
Sorry, something went wrong.
|
TODO:
Update: |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. I assume because of the initial underscore we don't have to worry about people who may have subclassed Path and overridden the _walk method (now to no effect.)
Sorry, something went wrong.
|
@carljm remember that Path.walk has only been created in 3.12 which means that 99% of libraries/projects do not and cannot depend on it yet. |
Sorry, something went wrong.
|
@barneygale any estimates of when you will have time to take a look at it? No pressure or rush though. |
Sorry, something went wrong.
|
I'll look at this within the next few days! |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good to me!
Sorry, something went wrong.
|
@AlexWaygood what would be the next steps for this PR? I am ready to continue improving it |
Sorry, something went wrong.
|
Sorry @Ovsyanka83, I'll try to take a proper look soon! |
Sorry, something went wrong.
|
@AlexWaygood gentle nudge to review this when you have the time! Thanks :) |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM.
Thanks for your contribution.
Sorry, something went wrong.
Sorry, something went wrong.
|
@barneygale thanks! Wow. Have you received merge rights? Congrats! Did they make you a core developer or is that a special rule just for you and pathlib? |
Sorry, something went wrong.
|
We made him a core dev! https://discuss.python.org/t/vote-to-promote-barney-gale/24801 |
Sorry, something went wrong.
|
@Ovsyanka83 thanks for your patience and for working on this, it's a neat patch :). I'm hoping to build an iterative version of glob() atop! |
Sorry, something went wrong.
Use a stack to implement pathlib.Path.walk iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees.