https://github.com/python/cpython
Revision 6150bb2412eb5ca3b330ccb9f0636949c7526a7f authored by Barney Gale on 05 April 2024, 18:51:54 UTC, committed by GitHub on 05 April 2024, 18:51:54 UTC
Replace tri-state `follow_symlinks` with boolean `recurse_symlinks` argument. The new argument controls whether symlinks are followed when expanding recursive `**` wildcards. The possible argument values correspond as follows:

    follow_symlinks  recurse_symlinks
    ===============  ================
    False            N/A
    None             False
    True             True

We therefore drop support for not following symlinks when expanding non-recursive pattern parts; it wasn't requested in the original issue, and it's a feature not found in any shells.

This makes the API a easier to grok by eliminating `None` as an option.

No news blurb as `follow_symlinks` was new in 3.13.
1 parent 4d4a6f1
History
Tip revision: 6150bb2412eb5ca3b330ccb9f0636949c7526a7f authored by Barney Gale on 05 April 2024, 18:51:54 UTC
GH-77609: Add recurse_symlinks argument to `pathlib.Path.glob()` (#117311)
Tip revision: 6150bb2
File Mode Size
.azure-pipelines
.devcontainer
.github
Android
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
iOS
.coveragerc -rw-r--r-- 526 bytes
.editorconfig -rw-r--r-- 214 bytes
.gitattributes -rw-r--r-- 3.9 KB
.gitignore -rw-r--r-- 3.1 KB
.mailmap -rw-r--r-- 175 bytes
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
.readthedocs.yml -rw-r--r-- 1014 bytes
LICENSE -rw-r--r-- 13.5 KB
Makefile.pre.in -rw-r--r-- 117.1 KB
README.rst -rw-r--r-- 8.6 KB
aclocal.m4 -rw-r--r-- 23.7 KB
config.guess -rwxr-xr-x 48.2 KB
config.sub -rwxr-xr-x 36.1 KB
configure -rwxr-xr-x 857.2 KB
configure.ac -rw-r--r-- 239.3 KB
install-sh -rwxr-xr-x 15.0 KB
pyconfig.h.in -rw-r--r-- 53.5 KB

README.rst

back to top