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. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- 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