So what I'm looking for here is something like PHP's print_r function.
This is so I can debug my scripts by seeing what's the state of the object in question.
You want vars() mixed with pprint():
vars()
pprint()
from pprint import pprint pprint(vars(your_object))
1.4m articles
1.4m replys
5 comments
57.0k users