What is a python equivalent of PHP's var_dump()
- by Zoredache
When debugging in PHP I frequently find it useful to simply stick a var_dump($foo, $bar, ...) in my code to show me the the what a variable is, what is value is, and the same for anything that it contains.
What is a good python equivalent for this?
I have seen several things in my Google searching that are somewhat equivalent, but nothing that is the same or better.