Keepin constants, configuration values, etc. in Python - dedicated module or what?

Chris Angelico rosuav at
Wed Oct 1 16:55:11 CEST 2014

On Thu, Oct 2, 2014 at 12:49 AM, Steven D'Aprano
<steve+comp.lang.python at> wrote:
> Chris Angelico wrote:
>> I'd agree, where "trivial limits" is defined by each individual item.
>> Going with straight Python code is fine for huge projects with long
>> config files, as long as each config entry is itself simple. You even
>> get a form of #include: "from otherfile import *".
> I would argue the opposite.

Welcome to design debates, where there are as many valid and
justifiable views as there are participants :)

Though I wasn't precluding small config files from being code - just
saying that I don't think size of project is a factor at all.


More information about the Python-list mailing list