-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-124363: Treat debug expressions in f-string as raw strings #128399
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
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.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (2)
- Parser/action_helpers.c: Language not supported
- Parser/lexer/lexer.c: Language not supported
@lysnikolaou gentle ping. |
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.
Thanks for the ping @pablogsal! LGTM! Left a couple of comments to improve comments around the code.
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…ythonGH-128399) (cherry picked from commit 60a3a0d) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Sorry, @pablogsal, I could not cleanly backport this to
|
GH-129187 is a backport of this pull request to the 3.13 branch. |
…rings (pythonGH-128399) (cherry picked from commit 60a3a0d) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
GH-129190 is a backport of this pull request to the 3.12 branch. |
@pablogsal This PR gives a warning in the test output:
Maybe the invalid escape sequence is intentional in the test, but it would be nice if the warning is suppressed. |
=
in an f-string is interpreted like a normal string with escape sequences #124363