bunch icon indicating copy to clipboard operation
bunch copied to clipboard

Pretty print

Open s-celles opened this issue 11 years ago • 2 comments

Hello,

I wonder how to pretty print Bunch objects:

import pprint
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(b)

Any idea ?

s-celles avatar Dec 23 '14 16:12 s-celles

Try:

import json
print json.dumps(b, indent=4)

amarinelli avatar Jan 07 '15 15:01 amarinelli

Thanks

s-celles avatar Jan 10 '15 08:01 s-celles