GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — gh-89727: Fix pathlib.Path.walk RecursionError on deep trees by zmievsa · Pull Request #100282 · python/cpython Conversation
|
✅ Deploy Preview for python-cpython-preview canceled.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
TODO:
Update: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…f github.com:ovsyanka83/cpython into pythongh-89727/fix-pathlib.Path.walk-recursion-depth
|
/cc @barneygale |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
|
@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.
There was an error while loading. Please reload this page.
|
@barneygale any estimates of when you will have time to take a look at it? No pressure or rush though. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll look at this within the next few days! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Barney Gale <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@AlexWaygood what would be the next steps for this PR? I am ready to continue improving it |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry @Ovsyanka83, I'll try to take a proper look soon! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Brett Cannon <[email protected]>
There was an error while loading. Please reload this page.
|
@AlexWaygood gentle nudge to review this when you have the time! Thanks :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks for your contribution.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@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.
There was an error while loading. Please reload this page.
|
We made him a core dev! https://discuss.python.org/t/vote-to-promote-barney-gale/24801 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Ovsyanka83 thanks for your patience and for working on this, it's a neat patch :). I'm hoping to build an iterative version of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-100282) Use a stack to implement `pathlib.Path.walk()` iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees. Co-authored-by: Barney Gale <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
…ythonGH-100282) Use a stack to implement `pathlib.Path.walk()` iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees. Co-authored-by: Barney Gale <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
Use `Path.walk()` to implement the recursive wildcard `**`. This method uses an iterative (rather than recursive) walk - see pythonGH-100282.
Use `Path.walk()` to implement the recursive wildcard `**`. This method uses an iterative (rather than recursive) walk - see GH-100282.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.