Skip to content

GH-132661: Add string.templatelib.convert()#135217

Merged
lysnikolaou merged 4 commits into
python:mainfrom
AA-Turner:templatelib-convert
Jul 15, 2025
Merged

GH-132661: Add string.templatelib.convert()#135217
lysnikolaou merged 4 commits into
python:mainfrom
AA-Turner:templatelib-convert

Conversation

@AA-Turner

@AA-Turner AA-Turner commented Jun 6, 2025

Copy link
Copy Markdown
Member

See https://discuss.python.org/t/94569/. cc @davepeck @treyhunner.

Sketch implementation. Skip news as this would be part of the larger PEP 750 piece.

A


📚 Documentation preview 📚: https://cpython-previews--135217.org.readthedocs.build/

@lysnikolaou

Copy link
Copy Markdown
Member

There's some test failures here. @hugovk Would it be okay if we backported this to 3.14?

@lysnikolaou lysnikolaou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just add string.templatelib.convert in this PR and leave docs for the big docs PR that currently in review.

@hugovk

hugovk commented Jul 11, 2025

Copy link
Copy Markdown
Member

@hugovk Would it be okay if we backported this to 3.14?

Yes, this makes sense to be part of the PEP 750 stuff. RC1 is soon: 2025-07-22.

@lysnikolaou

Copy link
Copy Markdown
Member

@AA-Turner Are you going to work on this to simplify it down to just adding convert?

@AA-Turner

Copy link
Copy Markdown
Member Author

Yes, sorry (at EuroPython). Hopefully will have time this afternoon.

A

@AA-Turner AA-Turner requested a review from lysnikolaou July 15, 2025 07:52
@AA-Turner AA-Turner added the needs backport to 3.14 bugs and security fixes label Jul 15, 2025

@lysnikolaou lysnikolaou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @AA-Turner!

@lysnikolaou lysnikolaou merged commit 5b969fd into python:main Jul 15, 2025
46 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @AA-Turner for the PR, and @lysnikolaou 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 request Jul 15, 2025
(cherry picked from commit 5b969fd)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@bedevere-app

bedevere-app Bot commented Jul 15, 2025

Copy link
Copy Markdown

GH-136671 is a backport of this pull request to the 3.14 branch.

@AA-Turner AA-Turner deleted the templatelib-convert branch July 15, 2025 09:57
@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 15, 2025
AA-Turner added a commit that referenced this pull request Jul 15, 2025
…136671)

GH-132661: Add ``string.templatelib.convert()`` (GH-135217)
(cherry picked from commit 5b969fd)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@davepeck

davepeck commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

🎉 Thanks, @AA-Turner ! I'll add docs for this to #135229

taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…H-135217) (python#136671)

pythonGH-132661: Add ``string.templatelib.convert()`` (pythonGH-135217)
(cherry picked from commit 5b969fd)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
NickCrews added a commit to NickCrews/tstrings-backport that referenced this pull request Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants