Most Pythonic way to store (small) configuration

marco.nawijn at marco.nawijn at
Tue Aug 4 20:37:57 CEST 2015

On Tuesday, August 4, 2015 at 7:06:33 PM UTC+2, Irmen de Jong wrote:
> On 4-8-2015 16:53, marco.nawijn at wrote:
> > Why not use Python files itself as configuration files?
> It could create a security risk if the config files are user-editable.
> (it will make it easy to inject code into your application)
> Irmen

Yes, I am aware of the security risk, but right now I am not too
worried about it. To be honest, JSON would be my preferred 
configuration file format, but as others already mentioned, there is
no standard way of adding comments to a JSON file. 


More information about the Python-list mailing list