print_r prints human-readable information about a variable
download from http://pypi.python.org/pypi/print_r/
python setup.py install or
from print_r import print_r
print_r([“a”, “b”, “c”])
more examples in tests.py
print_r(object[, output[, indent[, depth]]])
- object can be anything,
- output is a boolean, the default value is True. The object will be printed
- indent is the number of spaces used for indentation. Default is 4
- depth is how deep print_r is going to explore the structure. Default is 10.
The return value is a string of the object structure.
Will only print dicts, lists, classes, instances