Skip to content

gh-89268: Escape RTL characters in str.__repr__()#144744

Open
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:repr-rtl
Open

gh-89268: Escape RTL characters in str.__repr__()#144744
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:repr-rtl

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Feb 12, 2026

Previously, non-escaped right-to-left characters caused misleading output on Unicode-aware terminals and browsers.
Correspondingly, str.isprintable() now returns False for such characters.


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

Previously, non-escaped right-to-left characters caused misleading
output on Unicode-aware terminals and browsers.
Correspondingly, str.isprintable() now returns False for such
characters.
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.

1 participant