Re: Perl XML::Simple and Data::Dumper - exists in Python?

Discussion in 'Python' started by Fredrik Lundh, Nov 6, 2005.

  1. Miguel Manso wrote:

    > Can you point me out to Python solutions for:
    >
    > 1) Perl's Data::Dumper
    >
    > It dumps any perl variable to the stdout in a "readable" way.


    >>> import pprint
    >>> help(pprint)


    > 2) Perl's XML::Simple
    >
    > It maps a XML file into a Perl data structure.


    some alternatives:

    http://www.effbot.org/tags/elementtree
    http://article.gmane.org/gmane.comp.python.tutor/24986
    http://www.crummy.com/software/BeautifulSoup/
    http://www.aaronsw.com/2002/xmltramp/
    http://www.xml.com/pub/a/2005/01/19/amara.html

    </F>
     
    Fredrik Lundh, Nov 6, 2005
    #1
    1. Advertising

  2. "Fredrik Lundh" <> wrote:

    > Miguel Manso wrote:
    >
    > > Can you point me out to Python solutions for:
    > >
    > > 1) Perl's Data::Dumper
    > >
    > > It dumps any perl variable to the stdout in a "readable" way.

    >
    > >>> import pprint
    > >>> help(pprint)

    >
    > > 2) Perl's XML::Simple
    > >
    > > It maps a XML file into a Perl data structure.

    >
    > some alternatives:
    >
    > http://www.effbot.org/tags/elementtree
    > http://article.gmane.org/gmane.comp.python.tutor/24986
    > http://www.crummy.com/software/BeautifulSoup/
    > http://www.aaronsw.com/2002/xmltramp/
    > http://www.xml.com/pub/a/2005/01/19/amara.html


    One more: http://www.xml.com/pub/a/2003/07/02/py-xml.html

    George
     
    George Sakkis, Nov 6, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rc
    Replies:
    3
    Views:
    1,883
    Chris Uppal
    Aug 16, 2004
  2. Edward wijaya

    Data::Dumper for Python

    Edward wijaya, Oct 28, 2004, in forum: Python
    Replies:
    7
    Views:
    1,041
    A.M. Kuchling
    Oct 29, 2004
  3. Miguel Manso
    Replies:
    1
    Views:
    607
    Wallace Owen
    Jun 15, 2006
  4. srinivasan srinivas
    Replies:
    1
    Views:
    811
  5. Replies:
    4
    Views:
    251
    Paul Lalli
    Aug 1, 2007
Loading...

Share This Page