Skip to content

gh-132661: Implement PEP 750 #132662

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

Merged
merged 104 commits into from
Apr 30, 2025
Merged

gh-132661: Implement PEP 750 #132662

merged 104 commits into from
Apr 30, 2025

Conversation

lysnikolaou
Copy link
Member

@lysnikolaou lysnikolaou commented Apr 17, 2025

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>
@lysnikolaou
Copy link
Member Author

Should we run buildbots one more time? They're weren't green when they were ran originally.

Yes, I'll run them again before merging, after I've pulled main in. They weren't all green originally, but I've rerun them since then and they were green the second time (only one exception with an unrelated failure).

@sobolevn
Copy link
Member

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

@lysnikolaou
Copy link
Member Author

Oops, I was too late. πŸ˜†

Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

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

One question and LGTM.

Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

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

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

@bedevere-app
Copy link

bedevere-app bot commented Apr 29, 2025

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

@lysnikolaou
Copy link
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.

@sobolevn
Copy link
Member

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

@lysnikolaou lysnikolaou added the πŸ”¨ test-with-buildbots Test PR w/ buildbots; report in status section label Apr 29, 2025
@bedevere-bot
Copy link

πŸ€– 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 bedevere-bot removed the πŸ”¨ test-with-buildbots Test PR w/ buildbots; report in status section label Apr 29, 2025
@markshannon
Copy link
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 markshannon self-requested a review April 29, 2025 17:18
@lysnikolaou lysnikolaou merged commit 6020260 into python:main Apr 30, 2025
72 checks passed
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.