Most Pythonic way to store (small) configuration

Chris Angelico rosuav at gmail.com
Sun Aug 2 12:49:08 CEST 2015


On Sun, Aug 2, 2015 at 8:11 PM, Cecil Westerhof <Cecil at decebal.nl> wrote:
> Because of this I think a human readable file would be best.
> Personally I do not find XML very readable. So a conf or json file
> looks the most promising to me. And I would have a slight preference
> for a json file.
>
> Any comments, thoughts or tips?

I'd agree with your analysis. XML is not readable; the two best
options would be JSON, if you need the potential for deep structure,
or the simple config file ("INI file") if you don't.

ChrisA


More information about the Python-list mailing list