[Tutor] Python and config files?

Kent Johnson kent37 at tds.net
Thu Oct 26 15:24:16 CEST 2006


Basil Shubin wrote:
> Hi, friends!
> 
> Is there exist a module for working with config file? Simple enough, 
> just read/write config file (like for most unix app), determine where 
> row is contain config words with it's parameters (like 
> 'config_word=parameter') or it's a comments (#)?

Take a look at the ConfigParser module:
http://docs.python.org/lib/module-ConfigParser.html

Kent



More information about the Tutor mailing list