Back
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.
Yes, Python has a method that is used to print all current properties and values of an object which is vars() mixed with pprint():
from pprint import pprint pprint(vars(your_object))
from pprint import pprint
pprint(vars(your_object))
31k questions
32.8k answers
501 comments
693 users