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 thought on “Python print_r or var_dump

Leave a Reply