'pretty print' for built in types

Robert Dailey rcdailey at gmail.com
Tue Dec 9 10:31:41 EST 2008


Hi,

Is there a built in way to 'pretty print' a dict, list, and tuple
(Amongst other types)? Dicts probably print the ugliest of them all,
and it would be nice to see a way to print them in a readable way. I
can come up with my own function to do this, but I don't want to do
this if I don't have to.



More information about the Python-list mailing list