ConfigParser preserving file ordering
Joshua J. Kugler
joshua at eeinternet.com
Fri Oct 19 03:42:16 CEST 2007
On Thursday 18 October 2007 15:23, Frank Aune wrote:
> I use ConfigParser and actually quite like it, EXCEPT that it doesnt
> preserve the section order of the original config file when writing a new.
> This behaviour is hopeless IMO, and I've been looking for alternatives.
> I've been reading the interesting discussion on python-dev about
> improvements to ConfigParser:
> I know there are patches to archieve what I want, but tbh I need
> functionality present in the standard library or as a last option
> sub-class ConfigParser to archieve ordering preservation.
> Since the thread above is nearly two years old, I'm wondering if something
> has happended in this department?
Have you taken a look at ConfigObj?
Lead System Admin -- Senior Programmer
PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE
More information about the Python-list