Skip to content

Conversation

@davepeck
Copy link
Contributor

@davepeck davepeck commented May 1, 2025

  • Change is either:
    • To a Draft PEP
    • To an Accepted or Final PEP, with Steering Council approval
    • To fix an editorial issue (markup, typo, link, header, etc)
  • PR title prefixed with PEP number (e.g. PEP 123: Summary of changes)

Following this PR opened with the steering-council and related discussion, we propose an update to PEP 750 that:

  • Allows Template/Template concatenation (both implicit and explicit)
  • Disallows any form of Template/str concatenation (both implicit and explicit)

A rationale is provided and the two relevant sections of the PEP are updated ("Template String Concatenation" and, in rejected ideas, "Disallowing Template Concatenation").


📚 Documentation preview 📚: https://pep-previews--4395.org.readthedocs.build/

@AA-Turner
Copy link
Member

Adding the label to prevent inadvertent merging before pronouncement

@davepeck
Copy link
Contributor Author

davepeck commented Jun 26, 2025

I've updated this PR to match the steering council decision on template concatenation. /cc @AA-Turner

Copy link
Member

@warsaw warsaw left a comment

Choose a reason for hiding this comment

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

Thanks @davepeck ! LGTM, with one very minor grammatical suggestion.

Commit Barry’s suggestion

Co-authored-by: Barry Warsaw <[email protected]>
Copy link
Member

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

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

LGTM!

@lysnikolaou lysnikolaou merged commit 18f4d04 into python:main Jun 30, 2025
5 checks passed
@lysnikolaou lysnikolaou deleted the pep750-template-add-update branch June 30, 2025 15:08
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.

7 participants