Skip to content

gh-103997: Remove incorrect statements about -c dedenting#138624

Merged
encukou merged 8 commits intopython:mainfrom
StanFromIreland:remove-misleading-notes
Mar 10, 2026
Merged

gh-103997: Remove incorrect statements about -c dedenting#138624
encukou merged 8 commits intopython:mainfrom
StanFromIreland:remove-misleading-notes

Conversation

@StanFromIreland
Copy link
Member

@StanFromIreland StanFromIreland commented Sep 7, 2025

@picnixz's preferred alternative to correcting (& testing fully) the behavior in #138620.


📚 Documentation preview 📚: https://cpython-previews--138624.org.readthedocs.build/

StanFromIreland and others added 2 commits September 7, 2025 18:16
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
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.

I think it's better that way. Changing the dedent functions to mimic textwrap.dedent exactly is an overkill IMO and not worth the change at the C level.

@AA-Turner I'll let you check English.

Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

Without the reference to textwrap.dedent, the new notes are weird.
What other characters than the ones used in Python's indentation should be considered?
How would have empty line been normalized otherwise?

I suggest removing the note in use-facing docs, and in the internals, mentioning textwrap.dedent as a base for the comparison.

StanFromIreland and others added 3 commits March 9, 2026 16:31
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
@StanFromIreland StanFromIreland requested a review from encukou March 9, 2026 16:33
@encukou encukou merged commit bdf0105 into python:main Mar 10, 2026
50 checks passed
@StanFromIreland StanFromIreland deleted the remove-misleading-notes branch March 10, 2026 13:19
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.

3 participants