Most Pythonic way to store (small) configuration

random832 at random832 at
Wed Aug 5 04:44:31 CEST 2015

On Tue, Aug 4, 2015, at 21:32, Michael Torrie wrote:
> In many of my projects I put basic config variables in a file like
> and import that in each module that needs it.  The config
> module doubles as a global namespace for sharing between modules as well.

What about JSONP? That is, a file consisting exactly of "config_data =
[JSON object]" That would get you some of the benefits of having your
config file exist as a python module, but still allow it to be examined
by other tools, written out, etc.

More information about the Python-list mailing list