Reading properties file in Python, except using ConfigParser()

Discussion in 'Python' started by justmailharsh@gmail.com, Oct 5, 2012.

  1. Guest

    Hi All,

    How to read properties file in Python? I found ConfigParser() but it has a 'section' limitation, so looking for other alternatives.

    Thanks,

    Harsh
    , Oct 5, 2012
    #1
    1. Advertising

  2. Laszlo Nagy Guest

    Laszlo Nagy, Oct 5, 2012
    #2
    1. Advertising

  3. wrote:

    >How to read properties file in Python? I found ConfigParser() but it has a
    >'section' limitation, so looking for other alternatives.


    Have a look at PyYAML.



    Best regards,

    Günther
    Günther Dietrich, Oct 5, 2012
    #3
  4. Guest

    On Friday, October 5, 2012 5:03:01 PM UTC+5:30, Günther Dietrich wrote:
    > wrote:
    >
    >
    >
    > >How to read properties file in Python? I found ConfigParser() but it hasa

    >
    > >'section' limitation, so looking for other alternatives.

    >
    >
    >
    > Have a look at PyYAML.
    >
    >
    >
    >
    >
    >
    >
    > Best regards,
    >
    >
    >
    > Günther


    Thanks for responding guys. I got the solution from here -

    http://www.daniweb.com/software-dev...ies-file-in-python-except-using-configparser#

    Posting it here for others' benefit..
    , Oct 8, 2012
    #4
    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. John Salerno
    Replies:
    20
    Views:
    846
    John Salerno
    Aug 11, 2006
  2. Fabio Z Tessitore

    who is simpler? try/except/else or try/except

    Fabio Z Tessitore, Aug 12, 2007, in forum: Python
    Replies:
    5
    Views:
    371
  3. Replies:
    3
    Views:
    428
  4. David House

    try -> except -> else -> except?

    David House, Jul 6, 2009, in forum: Python
    Replies:
    2
    Views:
    334
    Bruno Desthuilliers
    Jul 6, 2009
  5. Peng Yu
    Replies:
    1
    Views:
    514
    Steven D'Aprano
    Nov 18, 2009
Loading...

Share This Page