Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty print #18

Open
scls19fr opened this issue Dec 23, 2014 · 2 comments
Open

Pretty print #18

scls19fr opened this issue Dec 23, 2014 · 2 comments

Comments

@scls19fr
Copy link

Hello,

I wonder how to pretty print Bunch objects:

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

Any idea ?

@amarinelli
Copy link

Try:

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

@scls19fr
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants