how to control the order of section order for ConfigParser.write()

Wen Jiang wjiang at blake.bcm.tmc.edu
Sun Sep 23 16:27:16 EDT 2001


Hi,
I am experimenting ConfigParser for configuration read and write. I have
large number of sections and want the sections written in the order I
want, but ConfigParser use dict to store the sections and write out in
pretty much random order. How could I modify the ConfigParser.write() to
output the sections in the order I need? 
Thanks,

Wen



More information about the Python-list mailing list