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-134582: Fix t-strings untokenize() roundtrip removing space between braces#134603

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

Conversation

loic-simon
Copy link
Contributor

@loic-simonloic-simon commentedMay 23, 2025
edited
Loading

Avoid round-trippingt"{ {}}" (an interpolation with an empty dictionary) intot"{{}}" (two literal braces).

This extend the mechanism used intokenize.Untokenizer.compat, to handle t-strings alongside f-strings.

@pablogsalpablogsal added the needs backport to 3.14bugs and security fixes labelMay 25, 2025
@pablogsal
Copy link
Member

Thanks for your contribution@loic-simon 🚀

loic-simon reacted with hooray emoji

@pablogsalpablogsal merged commit52509cc intopython:mainMay 25, 2025
45 checks passed
@miss-islington-app
Copy link

Thanks@loic-simon for the PR, and@pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 25, 2025
…between braces (pythonGH-134603)(cherry picked from commit52509cc)Co-authored-by: Loïc Simon <loic.pano@gmail.com>
@bedevere-app
Copy link

GH-134659 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMay 25, 2025
pablogsal pushed a commit that referenced this pull requestMay 25, 2025
… between braces (GH-134603) (#134659)gh-134582: Fix t-strings untokenize() roundtrip removing space between braces (GH-134603)(cherry picked from commit52509cc)Co-authored-by: Loïc Simon <loic.pano@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@pablogsalpablogsalpablogsal approved these changes

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@loic-simon@pablogsal

[8]ページ先頭

©2009-2025 Movatter.jp