ConfigParser and newlines

Mike Driscoll kyosohma at gmail.com
Fri May 15 14:38:16 EDT 2009


On May 15, 1:09 pm, Minesh Patel <min... at gmail.com> wrote:
> I am using ConfigParser to parse a config file and I want to maintain
> the newlines, how is it possible. Example given below. BTW, is there
> an alternative to configParser, should I use 'exec' instead. Is there
> any support for yaml built-in or possibly in the future?
>

The primary alternative to ConfigParser is Michael Foord's ConfigObj:

http://www.voidspace.org.uk/python/configobj.html

I don't know if it has yaml support or not though.

Mike



More information about the Python-list mailing list