Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-134551: Add t-strings support to pprint#134577
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
loic-simon commentedMay 23, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Not sure why Edit: looks like a real problem, I have a MRE, opening an issue soon |
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Handle formatting of
Template
andInterpolation
types inpprint
functions:Very straightforward, using existing
PrettyPrinter
helper methods.To avoid slowing import time, I did not import
Template
andInterpolation
fromstring.templatelib
, but instead copied their (very simple) definition:cpython/Lib/string/templatelib.py
Lines 8 to 11 in99a9ab1