Skip to content

PEP 822: add a Rejected Idea#4795

Merged
hugovk merged 2 commits intopython:mainfrom
methane:d-string3
Mar 8, 2026
Merged

PEP 822: add a Rejected Idea#4795
hugovk merged 2 commits intopython:mainfrom
methane:d-string3

Conversation

@methane
Copy link
Member

@methane methane commented Jan 27, 2026

"Allow content after opening quotes" idea is rejected.

ref: https://discuss.python.org/t/pep-822-dedented-multiline-string-d-string/105519/100


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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates PEP 822 to document the rejection of allowing content immediately after the opening quotes for d-strings, and expands the “Other Languages” comparison section with a Perl reference.

Changes:

  • Add Perl’s “Indented Here-documents” as a related feature in other languages.
  • Add a new “Rejected Ideas” subsection explaining why “content after opening quotes” was not adopted.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hugovk hugovk merged commit d1415ef into python:main Mar 8, 2026
5 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.

3 participants