Parsing a conf file

Simon Faulkner news at titanic.co.uk
Wed Mar 5 18:26:31 EST 2003


Cheers Guys,

The simple answers were perfect...


Simon

On 5 Mar 2003 21:09:30 GMT, Mike Dean <klaatu at evertek.net> wrote:

>On Wed, 05 Mar 2003 20:19:18 +0000 Simon Faulkner <news at titanic.co.uk> wrote:
>> Is there a simple / recommended way of parsing a setting from a conf
>> file?
>
>Well, there's the shlex module, which provides a lexer for a shell-like
>syntax.  It's a bit more heavyweight than the ConfigParser module, and
>requires some more work, but if you need a lot of flexibility, it should
>do the trick.
>
>-Mike





More information about the Python-list mailing list