object-dumper

C# object dumper

I'm looking for a class that can output an object and all its leaf values in a format similar to this: User - Name: Gordon - Age : 60 - WorkAddress - Street: 10 Downing Street - Town: London - Country: UK - HomeAddresses[0] ... - HomeAddresses[1] ... (Or a clearer format). This would be equivalent to: ...

Is there a Python equivalent to Perl's Data::Dumper?

Is there a Python module that can be used in the same way as Perl's Data::Dumper module? Edit: Sorry, I should have been clearer. I was mainly after a module for inspecting data rather than persisting. BTW Thanks for the answers. This is one awesome site! ...