I'd like to use prettyprint to print out a dictionary, but into a string and not to console. This string is to be passed on to other functions.
I know I can use the "stream" parameter to specify a file instead of sys.out but I want a string.
How do I do that?
s=pprint.pformat(your_dict)