Keep ConfigParser output files sorted

前端 未结 4 857
旧巷少年郎
旧巷少年郎 2021-01-05 10:15

I\'ve noticed with my source control that the content of the output files generated with ConfigParser is never in the same order. Sometimes sections will change place or opt

4条回答
  •  无人及你
    2021-01-05 11:02

    ConfigParser is based on the ini file format, who in it's design is supposed to NOT be sensitive to order. If your config file format is sensitive to order, you can't use ConfigParser. It may also confuse people if you have an ini-type format that is sensitive to the order of the statements...

提交回复
热议问题