Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-140922: Document fnmatch.translate \Z to \z change in 3.14#144457
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
base:main
Are you sure you want to change the base?
Conversation
Add versionchanged note explaining that fnmatch.translate() nowgenerates regular expressions using \z instead of \Z. Both areequivalent; \Z is still accepted for compatibility.Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
picnixz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please, always read the issue description and its corresponding thread. The indication should have gone first into "Porting to 3.14" notes as this one is an implementation detail, though I think it's also fine to have it as a "versionchanged".
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Uh oh!
There was an error while loading.Please reload this page.
Summary
versionchanged:: 3.14note tofnmatch.translate()documentation\zinstead of\Z\Zis still accepted for compatibilitySource verification
Lib/fnmatch.py:188that\zis usedadd0ca9ea00made this changeTest plan
make checkpassed🤖 Generated withClaude Code
fnmatch.translatechanged in an undocumented way in Python 3.14 #140922📚 Documentation preview 📚:https://cpython-previews--144457.org.readthedocs.build/