Parsing files

Byrom, R (Rob) R.Byrom at rl.ac.uk
Tue Feb 10 08:05:09 EST 2004


Hi,

 

Does anyone know of a neat way to read-in config files? At the moment I'm
using the ConfigParser module but I have to add sections to the config file
to make it parseable ie

 

[a-section]

 

param=a

etc

 

I want the parser to work without these sections. Is this possible ? If not
what do people recommend?

 

Any help/suggestions gratefully received,

 

Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040210/b74a3775/attachment.html>


More information about the Python-list mailing list