Skip to content

PEP 750: restrict support for Template + str addition #4395

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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

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.

4 participants