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!