Parsing a conf file

Simon Faulkner news at
Thu Mar 6 00:26:31 CET 2003

Cheers Guys,

The simple answers were perfect...


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

>On Wed, 05 Mar 2003 20:19:18 +0000 Simon Faulkner <news at> 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.

More information about the Python-list mailing list