stef <[EMAIL PROTECTED]> wrote: > I just used configparser for the first time and discovered that it > shuffled all my sections, > and the contents of the sections too. > > This makes human manipulation of the file impossible. > > Is there a way to prevent this shuffling,
You could try getting yourself an ordered dictionary implmentation, say http://www.voidspace.org.uk/python/odict.html Then doing something like this (untested) class MyConfigParser(SafeConfigParser): def __init__(self, defaults=None): SafeConfigParser.__init__(defaults) self._sections = odict() self._defaults = odict() -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list