[Tutor] Data::Dumper for Python
tigershark at morganmeader.com
Thu Oct 28 19:35:44 CEST 2004
I asked the same exact question when I recently started learning
Python(coming from Perl also).
In Perl I use Data::Dumper mostly to review my data visually so I can
see if I am accessing it correctly in a variety of ways. I also used it
once for a data persistance operation that I have come to value the
gnosis.xml.pickle module for in Python.
So for debugging and general understanding and for looking at data
visually, I have used the pprint module.
pp = pprint.PrettyPrinter(indent=4)
Thanks for having such informative discussions!
Edward WIJAYA wrote:
> Is there any equivalent modules of it
> in Python.
> Brian van den Broek suggestion on Python-Perl
> is very useful, and cover mostly
> on types and data-structure.
> Any idea if there is any
> similar stuff for Perl-Python Modules
More information about the Tutor