From the [very first sentence of the documentation](https://docs.python.org/3/library/pprint.html): "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**." (emphasis mine) So, no, and what you want defeats the point of that module, use `print` instead.
– metatoasterJul 12 '18 at 02:43
The reason is because i dump all collected intormation into a dictionary. The dict looks something like this
`info = {
'ls' : 'a.txt\nb.txt\nc.txt',
'pwd': '/a/b/c'
}`
I wanna have an easy way to to just print the entire dict is a easily readable format.
– lionel319Jul 12 '18 at 05:18
2
Call something like `info['ls'] = info['ls'].splitlines()` before calling `pprint(info)`
– metatoasterJul 12 '18 at 05:28
@metatoaster Ahhh That is really cool. How come i never thought of that before. Thanks a lot. That works for me :)
– lionel319Jul 12 '18 at 05:40