FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132661: Implement PEP 750 by lysnikolaou · Pull Request #132662 · python/cpython · GitHub

/ cpython Public

gh-132661: Implement PEP 750 - #132662

Merged
lysnikolaou merged 104 commits into
python:mainfrom
lysnikolaou:tstrings
Apr 30, 2025
Merged

gh-132661: Implement PEP 750#132662
lysnikolaou merged 104 commits into
python:mainfrom
lysnikolaou:tstrings

Conversation

lysnikolaou commented Apr 17, 2025
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

PEP 750 implementation! 🎉

Let's make sure as many people as possible take a look at this, since it's touching many areas that I've not worked on before.


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

lysnikolaou and others added 30 commits October 18, 2024 17:41
* Rename expr to expression, conv to conversion
* Move templatelib under string lib
* Add strings lib to LIBSUBDIRS
* Update type of Template/TemplateIter/Interpolation
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>

Copy link
Copy Markdown
Member

Oh, I messed up, sorry. I clicked "merge main", but it was a long process :(

Copy link
Copy Markdown
Member Author

Oops, I was too late. 😆

picnixz 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

One question and LGTM.

Comment thread Objects/interpolationobject.c Outdated

markshannon 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm not convinced about adding string/templatelib.py instead of adding the new types to types.
Either way, the C module is unnecessary.

Comment thread Modules/_templatelibmodule.c Outdated
Comment thread Lib/string/templatelib.py
Comment thread Lib/string/templatelib.py Outdated

bedevere-app Bot commented Apr 29, 2025

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Copy link
Copy Markdown
Member Author

@markshannon Thanks for the review! I've removed the _templatelib extension.

Regarding the types vs string.templatelib discussion, I don't have a strong opinion either way, but it feels that it's too late for it to be reopened. The SC made their decision and I think we should go with it. We're a week away from the beta freeze and I'd like to get this PR in.

Copy link
Copy Markdown
Member

In my humble opinion we should not add to types what we can add to some other semantically named module.

lysnikolaou added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 29, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @lysnikolaou for commit 0b1aef9 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F132662%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 29, 2025

Copy link
Copy Markdown
Member

@markshannon Thanks for the review! I've removed the _templatelib extension.

Regarding the types vs string.templatelib discussion, I don't have a strong opinion either way, but it feels that it's too late for it to be reopened. The SC made their decision and I think we should go with it. We're a week away from the beta freeze and I'd like to get this PR in.

I'm fine with you merging this now. It is only a small change to move the code to types.py in another PR if that's what we decide we want.

markshannon self-requested a review April 29, 2025 17:18
Comment thread Doc/library/token.rst Outdated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.


Back | FazBrowse Home | New Git URL