Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale commented Mar 28, 2024

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.


📚 Documentation preview 📚: https://cpython-previews--117311.org.readthedocs.build/

Replace tri-state `follow_symlinks` with boolean `recurse_symlinks` argument. The new argument controls whether symlinks are followed when expanding recursive `**` wildcards. The arguments correspond as follows: follow_symlinks recurse_symlinks =============== ================ False N/A None False True True
@barneygale
Copy link
ContributorAuthor

@barneygalebarneygale enabled auto-merge (squash) April 5, 2024 18:23
@barneygalebarneygale merged commit 6150bb2 into python:mainApr 5, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
python#117311) 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.
Sign up for freeto 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

@barneygale