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

Chris Angelico rosuav at gmail.com
Wed Oct 1 10:55:11 EDT 2014


On Thu, Oct 2, 2014 at 12:49 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> 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.

ChrisA



More information about the Python-list mailing list