ConfigParser

Serge Orlov Serge.Orlov at gmail.com
Thu Mar 17 08:43:25 EST 2005


Sergey wrote:
> Is there an alternative to standard module ConfigParser, which can
> use delimitier symbol other than ":" and "=", preferaby just space?
> I need to parse such configs:
>
> [Passwords]
> 2:5020/758 xxxx
> 2:5020/794 yyyy
>
> ConfigParser is not able to work with option names which contain
> symbol ':' It is not difficult to modify ConfigParser to resolve it,
> but may be another solution already exists?

In case you won't get a satisfying answer there is always python
package index: http://www.python.org/pypi Go to search and enter
"config" into the keyword field, you'll get seven results, looking at
description five of them are configuration file parsers.

  Serge.




More information about the Python-list mailing list