ConfigParser - setting the order of options in a section

Miki Tebeka miki.tebeka at zoran.com
Mon Jan 19 17:21:02 EST 2004


Hello,

> I am trying unsuccessfully to set the order of options using  the
> set(section,option,value) method ( Python 2.2.2) and writing to a
> file. But the options always appear in a random order.
I had the same problem. Just hand written the file myself, the syntax
of the .cfg files is *very* simple and by iterating over the
sections/values it's very easy to generate the "right" output file.

HTH.
Miki



More information about the Python-list mailing list