]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
pathlib ABCs: follow all symlinks in `PathBase.glob()` (#116293)
authorBarney Gale <barney.gale@gmail.com>
Mon, 4 Mar 2024 02:26:33 +0000 (02:26 +0000)
committerGitHub <noreply@github.com>
Mon, 4 Mar 2024 02:26:33 +0000 (02:26 +0000)
commit1dce0073da2e48f3cd387f4d57b14d6813bb8a85
treebdfbe571b2854ce3b455f65c5148495c98995173
parent3383d6afa3e4454b237bca2ef856e0f79b5b30c1
pathlib ABCs: follow all symlinks in `PathBase.glob()` (#116293)

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.
Lib/pathlib/_abc.py
Lib/test/test_pathlib/test_pathlib_abc.py