471,316 Members | 1,479 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

which configparse?

I have all my options setup with optparse. Now, I'd like to be able to
parse an ini file to set defaults (that could be overridden by command line
switches).

I'd like to make minimal change to my working optparse setup (there are lots
of options - I don't want to duplicate all the cmdline parsing with ini
file parsing code)

I've looked at configparse, cfgparse, iniparse.

configparse looks like what I want, but it seems last commit was >2years
ago.

What is the best choice?

Dec 6 '07 #1
1 987
Neal Becker <nd*******@gmail.comwrote:
>I've looked at configparse, cfgparse, iniparse.

configparse looks like what I want, but it seems last commit was >2years
ago.

What is the best choice?
ConfigParser is the battery included in the standard library. If
you're planning on distributing your script, consider the value
of this.

--
\S -- si***@chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
Dec 7 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Zunbeltz Izaola | last post: by
133 posts views Thread by Jane Withnolastname | last post: by
29 posts views Thread by guru.slt | last post: by
17 posts views Thread by clintonG | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.