What's better, ConfigObj or ConfigParser?

后端 未结 3 1777
面向向阳花
面向向阳花 2021-02-04 01:07

Which is better for creating a settings file for Python programs, the built-in module (ConfigParser), or the independent project (ConfigObj)?

3条回答
  •  庸人自扰
    2021-02-04 01:56

    Thus far, I found ConfigParser sufficient any time I used it. Plus, it's an included battery and not a third party library.

    Though I have to admit, the code samples in the ConfigObj documentation make ConfigParser look really sucksy in comparision. For a script which heavily manipulates .ini files, I'd propably prefer it.

提交回复
热议问题