The first sentence of pprint’s documentation says it all:
The pprint module provides a capability to “pretty-print” arbitrary Python data structures in a form which can be used as input to the interpreter.
A string presentation of an arbitrary data structure that can be used as input to the interpreter–that describes repr rather than print.
So yeah pprint is really a misnomer–it would’ve been more aptly named prepr, though it’s kind of late/pointless to rename the module and function at this point in time.
Thanks! I am new to python, and note that print has a storied history, and that correcting it caused a considerable fuss. Perhaps pprint.prettiest() be added using the __str__form?