Thanks to visit codestin.com
Credit goes to github.com

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 3 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:

  1. Removes support for Template.__radd__ entirely
  2. Removes support for str in Template.__add__

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

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.

2 participants