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-119169: Speed up `os.walk(topdown=False)` by barneygale · Pull Request #119186 · python/cpython Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
#119473 fixes the test failure. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
os.walk()os.[f]walk()
When `os.walk()` traverses into subdirectories in top-down mode, call `os.path.join()` once to add a trailing slash, and use string concatenation thereafter to generate child paths.
os.[f]walk()os.walk()
Handle errors from `os.scandir()` and `ScandirIterator` similarly, which lets us loop over directory entries with `for`.
os.walk()os.walk(topdown=False)
|
Closing because reversing sibling traversal order isn't kosher - see discussion on #119473. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
GH-119186: Slightly speed up `os.walk(topdown=True)` When `os.walk()` traverses into subdirectories in top-down mode, call `os.path.join()` once to add a trailing slash, and use string concatenation thereafter to generate child paths.
…121431) pythonGH-119186: Slightly speed up `os.walk(topdown=True)` When `os.walk()` traverses into subdirectories in top-down mode, call `os.path.join()` once to add a trailing slash, and use string concatenation thereafter to generate child paths.
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.