Skip to content

pathlib ABCs: follow all symlinks in PathBase.glob()#116293

Merged
barneygale merged 1 commit intopython:mainfrom
barneygale:pathlib-abc-glob-follow-symlinks
Mar 4, 2024
Merged

pathlib ABCs: follow all symlinks in PathBase.glob()#116293
barneygale merged 1 commit intopython:mainfrom
barneygale:pathlib-abc-glob-follow-symlinks

Conversation

@barneygale
Copy link
Copy Markdown
Contributor

Switch the default value of follow_symlinks from None to True in pathlib._abc.PathBase.glob() and rglob(). This speeds up recursive globbing.

No change to the public pathlib classes. I'll make a similar change in Path.glob() in ~2 years time.

Switch the default value of *follow_symlinks* from `None` to `True` in
`pathlib._abc.PathBase.glob()` and `rglob()`. This speeds up recursive
globbing.

No change to the public pathlib classes.
@barneygale barneygale merged commit 1dce007 into python:main Mar 4, 2024
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
Switch the default value of *follow_symlinks* from `None` to `True` in
`pathlib._abc.PathBase.glob()` and `rglob()`. This speeds up recursive
globbing.

No change to the public pathlib classes.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
Switch the default value of *follow_symlinks* from `None` to `True` in
`pathlib._abc.PathBase.glob()` and `rglob()`. This speeds up recursive
globbing.

No change to the public pathlib classes.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Switch the default value of *follow_symlinks* from `None` to `True` in
`pathlib._abc.PathBase.glob()` and `rglob()`. This speeds up recursive
globbing.

No change to the public pathlib classes.
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.

1 participant