◐ Shell
clean mode source ↗

bpo-30670: Add pp function to the pprint module by remilapeyre · Pull Request #11769 · python/cpython

Would it be worth explicitely saying that this is an alias of pprint() with sort_dict=False ?

At first glance I was puzzled why both pp() and pprint() existed, and it took a moment to spot the different default sort_dict value - and I ended up having to confirm via source code inspection that there were no other differences between the two.

As such, the above mentioned docs would have been useful for me personally :-)