How do I use the config parser?

Rob Williscroft rtw at freenet.co.uk
Sat May 5 16:55:19 EDT 2007


 wrote in news:1178392410.866037.179950 at e65g2000hsc.googlegroups.com in 
comp.lang.python:

> Hi,
> I need a specific example. I have seen the docs, but I don't all the
> stuffs there.
> 

> from ConfigParser import ConfigParser

 
> Now I want to know how to read a section, a section attribute's value,
> and to write thoses back after reading.
> 

ConfigParser is derived from RawConfigParser, so you need
to look at RawConfigParser's docs here:

    	http://docs.python.org/lib/RawConfigParser-objects.html


Rob.
-- 
http://www.victim-prime.dsl.pipex.com/



More information about the Python-list mailing list