I\'m starting to code in various projects using Python (including Django web development and Panda3D game development).
To help me understand what\'s going on, I wo
Try using:
print(object.stringify())
object is the variable name of the object you are trying to inspect.This prints out a nicely formatted and tabbed output showing all the hierarchy of keys and values in the object.
NOTE: This works in python3. Not sure if it works in earlier versions
UPDATE: This doesn't work on all types of objects. If you encounter one of those types (like a Request object), use one of the following instead:
dir(object())or
import pprint
then:
pprint.pprint(object.__dict__)