Parsing a conf file

Gerhard Häring gh at ghaering.de
Wed Mar 5 15:40:52 EST 2003


Simon Faulkner wrote:
> Hello All,
> 
> Is there a simple / recommended way of parsing a setting from a conf
> file? [...]

If you can decide what the format of the config file will be, you
could use the ConfigParser module, which can parse config files in the
style of Windows .INI files.

-- Gerhard




More information about the Python-list mailing list