Re: Dealing with config files what's the options

2005-02-26 Thread Jorgen Grahn
On Fri, 25 Feb 2005 21:54:16 -0500, Tom Willis [EMAIL PROTECTED] wrote: On Fri, 25 Feb 2005 15:02:04 -0700, Dave Brueck [EMAIL PROTECTED] wrote: Jorgen Grahn wrote: ... How about writing them in Python? ... I actually thought of this, and I was kind of on the fence due to the intended

Re: Dealing with config files what's the options

2005-02-25 Thread Jorgen Grahn
On Tue, 22 Feb 2005 20:38:28 -0500, Tom Willis [EMAIL PROTECTED] wrote: How are the expert pythoneers dealing with config files? ... Any ideas? How about writing them in Python? I have no URL handy, but it would surprise me if there wasn't a lot written about different techniques for doing

Re: Dealing with config files what's the options

2005-02-25 Thread Dave Brueck
Jorgen Grahn wrote: On Tue, 22 Feb 2005 20:38:28 -0500, Tom Willis [EMAIL PROTECTED] wrote: How are the expert pythoneers dealing with config files? ... Any ideas? How about writing them in Python? Depending on who will be editing the config files, this can be a great approach. At the simplest

Re: Dealing with config files what's the options

2005-02-25 Thread Tom Willis
On Fri, 25 Feb 2005 15:02:04 -0700, Dave Brueck [EMAIL PROTECTED] wrote: Jorgen Grahn wrote: On Tue, 22 Feb 2005 20:38:28 -0500, Tom Willis [EMAIL PROTECTED] wrote: How are the expert pythoneers dealing with config files? ... Any ideas? How about writing them in Python?

Re: Dealing with config files what's the options

2005-02-25 Thread Dave Brueck
Tom Willis wrote: On Fri, 25 Feb 2005 15:02:04 -0700, Dave Brueck How about writing them in Python? Depending on who will be editing the config files, this can be a great approach. [snip] I actually thought of this, and I was kind of on the fence due to the intended audience. I don't think it's

Re: Dealing with config files what's the options

2005-02-23 Thread Fuzzyman
Hello Tom, Tom Willis wrote: How are the expert pythoneers dealing with config files? Is there anything similair to .net's config files or java's .properties? I'm not familiar with those config file formats - but ConfigObj certainly makes handling config files easy. It uses the ini type

Re: Dealing with config files what's the options

2005-02-23 Thread Phil Jackson
Tom Willis [EMAIL PROTECTED] writes: How are the expert pythoneers dealing with config files? You could use the cPickle module if you don't mind your config files being unreadable by humans. There is also the shlex module for more powerful config file needs:

Re: Dealing with config files what's the options

2005-02-23 Thread Tom Willis
On Wed, 23 Feb 2005 20:15:47 +, Phil Jackson [EMAIL PROTECTED] wrote: Tom Willis [EMAIL PROTECTED] writes: How are the expert pythoneers dealing with config files? You could use the cPickle module if you don't mind your config files being unreadable by humans. There is also the shlex

RE: Dealing with config files what's the options

2005-02-22 Thread Tony Meyer
How are the expert pythoneers dealing with config files? [...] You can just import ConfigParser, or look at the various alternatives: http://www.python.org/moin/ConfigParserShootout =Tony.Meyer -- http://mail.python.org/mailman/listinfo/python-list

Re: Dealing with config files what's the options

2005-02-22 Thread Tom Willis
Thanks, I'm not too keen on the ini layout. But it's good to know it's there. On Wed, 23 Feb 2005 14:50:27 +1300, Tony Meyer [EMAIL PROTECTED] wrote: How are the expert pythoneers dealing with config files? [...] You can just import ConfigParser, or look at the various alternatives: