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

A couple of the elder statesmen are happy to announce PEP 813, a proposal to build-in optional pretty printing for print(), str.format(), and f-strings, and to define a protocol classes can implement to participate in and customize how their instances are pretty printed. Enjoy, and let the games begin!
@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.