-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-137314: Fix incorrect treatment of format specs in raw fstrings #137328
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@Yhg1s should we backport this to 3.12? is not a security fix certianly so my default would be 'no' but my guess is that it will make maintaining linterns a pain in this area if the behaviour is different. |
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.
LGTM. 👍
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…ngs (pythonGH-137328) (cherry picked from commit 0153d82) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
…ngs (pythonGH-137328) (cherry picked from commit 0153d82) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
GH-137344 is a backport of this pull request to the 3.14 branch. |
GH-137345 is a backport of this pull request to the 3.13 branch. |
…w fstrings (pythonGH-137328) (cherry picked from commit 0153d82)
Linters will probably have to consider earlier 3.12 releases anyway (at least on Windows and probably macOS, since we won't be building installers with this fix), and yeah, it's not a security fix. I don't see a particular compelling reason to backport it unless we want to reconsider the whole security-fix-only idea. |
Happy to special case, but just for clarification this was a regression in 3.12, not something that held in 3.11 - so the behavior in the linter would not be "3.12 and earlier do this..." but rather "only for 3.12 do this". |
What we meant by earlier releases is the patch version. We only release sources for security-only branches, and usually it's only Linux distributions that pick them up to so that users can upgrade their system-wide installation from their package manager. So Windows is likely to have Python 3.12.N without the fix while Linux would have the fix in 3.12.(N+1). |
Uh oh!
There was an error while loading. Please reload this page.