Today I learned about a relatively new PEP to improve pretty printing in Python. 🤩

https://peps.python.org/pep-0813/

#Python

PEP 813 – The Pretty Print Protocol | peps.python.org

This PEP describes the “pretty print protocol”, a collection of changes proposed to make pretty printing more customizable and convenient.

Python Enhancement Proposals (PEPs)

@mahryekuh This looks fantastic! I'd love to be able to pretty-print things without having to import anything.

Also, you can tell it's written by Barry because the example is a class representing a bass guitar, not Foo. I love concrete examples in documentation and proposals.