You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use write instead of stream.write in PrettyPrinter._pprint_frozendict #145887
In the recent PR that added frozendict support to pprint (#144908), I let a small inconsistency get through: we set write = stream.write then immediately uses stream.write two lines below:
Activity
vstinner commentedon Mar 12, 2026
Ah right,
write()should be used instead ofstream.write.Sure, go ahead.
gh-145887: Use `write()` instead of `stream.write()` in `PrettyPrinte…
pythongh-145887: Use `write()` instead of `stream.write()` in `Pretty…