Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-77609: Add recurse_symlinks argument topathlib.Path.glob()#117311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
barneygale merged 3 commits intopython:mainfrombarneygale:recurse-symlinks2
Apr 5, 2024

Conversation

barneygale
Copy link
Contributor

@barneygalebarneygale commentedMar 28, 2024
edited
Loading

Replace tri-statefollow_symlinks with booleanrecurse_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/ANone             FalseTrue             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 eliminatingNone as an option.

No news blurb asfollow_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 whenexpanding recursive `**` wildcards. The arguments correspond as follows:    follow_symlinks  recurse_symlinks    ===============  ================    False            N/A    None             False    True             True
@barneygale
Copy link
ContributorAuthor

@barneygalebarneygaleenabled auto-merge (squash)April 5, 2024 18:23
@barneygalebarneygale merged commit6150bb2 intopython:mainApr 5, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 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             TrueWe 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
Reviewers

@gpsheadgpsheadAwaiting requested review from gpshead

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@barneygale

[8]ページ先頭

©2009-2025 Movatter.jp