469,277 Members | 2,062 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,277 developers. It's quick & easy.

Do we have perl's Data::Dumper equivalent in Python??

Thanks,
Srini
Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups/bestofyahoo/
Jul 14 '08 #1
1 2843
oj
On Jul 14, 11:41*am, srinivasan srinivas <sri_anna...@yahoo.co.in>
wrote:
Thanks,
Srini

* * * Bollywood, fun, friendship, sports and more. You name it, we have it onhttp://in.promos.yahoo.com/groups/bestofyahoo/
You might have more luck asking for help if you explained what Perl's
Data::Dumper actually does, instead of expecting people to either just
know, or to go and look it up.

In particular, what functionality of Data::Dumper is it you are
looking for?

For a user friendly representation of a python data structure, look at
pprint:
http://docs.python.org/lib/module-pprint.html

For a string representing a data structure that can be eval'd to get
the structure back again, look at the built-in repr()

-Oli
Jul 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Edward wijaya | last post: by
4 posts views Thread by Xah Lee | last post: by
5 posts views Thread by Xah Lee | last post: by
4 posts views Thread by Xah Lee | last post: by
2 posts views Thread by Xah Lee | last post: by
reply views Thread by kamal | last post: by
3 posts views Thread by Xah Lee | last post: by
8 posts views Thread by Xah Lee | last post: by
crazy4perl
1 post views Thread by crazy4perl | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.