Parsing a conf file

Mike Dean klaatu at evertek.net
Wed Mar 5 22:09:30 CET 2003


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

-- 
The length of this document defends it well against the risk of its
being read.
                -- Sir Winston Churchill




More information about the Python-list mailing list