Post

Well, let's fix those pprint defaults! mastodon.social/@treyhunner/... Which do you prefer? github.com/python/cpyth... github.com/python/cpyth... #Python #Python315 #pprint

Trey Hunner@trey.io

Big news (for me at least): pprint on Python 3.15 is going to allow MUCH friendlier output! 🎉 Instead of: pprint.pprint(some_object) If you do this: pprint.pprint(some_object, indent=4, expand=True) You'll see output that looks like the most commonly used modern Python line-wrapping style!

The PR looks better. Changing the default is low risk. But since almost no one knows that `pp()` even exists, changing the default on it is probably the better move.

0 reposts1 like

No replies yet.