Python print_r or var_dump

If you’re coming from PHP, you may be wondering how to do a print_r or var_dump.

import pprint
pprint.pprint(myobj)

One Response to “Python print_r or var_dump”

  1. Tomas Sandven says:

    Not as easy as var_dump() but thanks!

Leave a Reply

You must be logged in to post a comment.