On 7/20/07, Robert Kern <[EMAIL PROTECTED]> wrote:
> Darren Dale wrote:
>
> > That is not too bad for small config files, but matplotlib's selection of rc
> > parameters is pretty large, and it is nice to have them appear in the file 
> > in
> > a meaningful order.
>
> You guys may want to consider iniparse instead of configobj. It will preserve
> order, indentation, comments(!), and blank lines.
>
>   http://code.google.com/p/iniparse/
>
> The drawback is that it doesn't support nested sections, to my knowledge. 
> There
> might also be more special features of configobj that Fernando uses; I haven't
> taken a very close look at the code, yet.

Mmh, but configobj does preserve all those as well.  Darren's comment
was about not being able to get a clean file when made purely from a
HasTraits description.  But when there is an existing file on disk,
configobj is actually really good at preserving it.

So it seems to me that iniparse appears to be a limited subset of
configobj (we really want nested sections in ipython, and MPL has them
as well already).  It does have the a.b instead of a['b'] convenience,
but we get that via traits anyway.

Am I missing something?

Cheers,

f

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to