Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78553

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'agree,': 0.09; 'item.': 0.09; 'subject:module': 0.09; 'subject:skip:c 10': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"from': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'simple.': 0.16; 'subject:etc.': 0.16; 'subject:values': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'import': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'config': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'argue': 0.31; "d'aprano": 0.31; 'factor': 0.31; 'steven': 0.31; 'subject:what': 0.31; "i'd": 0.34; 'received:google.com': 0.35; 'there': 0.35; 'entry': 0.36; 'subject:?': 0.36; 'project': 0.37; 'being': 0.38; 'files': 0.38; 'itself': 0.39; 'even': 0.60; 'subject:. ': 0.67; 'participants': 0.83; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=J6fK3jcA59q44TLO91U3LwG/YRK5PBDweOswoO/XGPQ=; b=ZHOAVBywdvuNBEHC9hNshML8JqZBZh1HUI8XSfP3oCTTRRO+GTFtdc4fMWcfAFD7se mAe6/T+IdS3RbmQB19MZHSJbIcBaeMknLoUG29IFXdv1tsLVg4eIF2g32LtwABpq9ent S1tGqAgykDU5I1OnySROEwEkdy1vZ8xi02AhJ8WFSHJNM8q2f8diKcTDV9TxxCXbBreT 5D7AuuU3lTF8Xg0iX+BZQmYV4W09LU80fYd0WOXWexyOhc/Mg+VJKb8iMrpTpo2a5/Aj oK5+WXH/EGC/TziNalPXwR0Uid3+M71trlMTVyH00rCjxPsyDzsQ8yUl5vkyKX95Qyac bCqQ==
MIME-Version 1.0
X-Received by 10.50.20.169 with SMTP id o9mr20018950ige.14.1412175311211; Wed, 01 Oct 2014 07:55:11 -0700 (PDT)
In-Reply-To <542c146c$0$13007$c3e8da3$5496439d@news.astraweb.com>
References <54hqfb-nan.ln1@chris.zbmc.eu> <36d7ddca-29f4-403c-a64d-611e187afc3a@googlegroups.com> <bgtqfb-ndq.ln1@chris.zbmc.eu> <a140612a-a30d-43eb-93a3-bc08b76b5721@googlegroups.com> <mailman.14489.1412095890.18130.python-list@python.org> <2ea96bcf-e905-4d77-a105-82b27715aa6e@googlegroups.com> <mailman.14490.1412097338.18130.python-list@python.org> <542c146c$0$13007$c3e8da3$5496439d@news.astraweb.com>
Date Thu, 2 Oct 2014 00:55:11 +1000
Subject Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14521.1412175314.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1412175314 news.xs4all.nl 2906 [2001:888:2000:d::a6]:33454
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78553

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Keepin constants, configuration values, etc. in Python - dedicated module or what? cl@isbd.net - 2014-09-30 12:35 +0100
  Re:Keepin constants, configuration values, etc. in Python - dedicated module or what? Dave Angel <davea@davea.name> - 2014-09-30 09:14 -0400
    Re: Re:Keepin constants, configuration values, etc. in Python - dedicated module or what? cl@isbd.net - 2014-09-30 15:55 +0100
      Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Dave Angel <d@davea.name> - 2014-10-02 14:50 -0400
  Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Rustom Mody <rustompmody@gmail.com> - 2014-09-30 06:15 -0700
    Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? cl@isbd.net - 2014-09-30 16:06 +0100
      Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? jkn <jkn_gg@nicorp.f9.co.uk> - 2014-09-30 08:59 -0700
      Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Rustom Mody <rustompmody@gmail.com> - 2014-09-30 09:39 -0700
        Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Chris Angelico <rosuav@gmail.com> - 2014-10-01 02:51 +1000
          Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Rustom Mody <rustompmody@gmail.com> - 2014-09-30 10:01 -0700
            Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Chris Angelico <rosuav@gmail.com> - 2014-10-01 03:15 +1000
              Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Rustom Mody <rustompmody@gmail.com> - 2014-09-30 10:31 -0700
                Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Chris Angelico <rosuav@gmail.com> - 2014-10-01 03:46 +1000
              Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-02 00:49 +1000
                Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Chris Angelico <rosuav@gmail.com> - 2014-10-02 00:55 +1000
            Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? cl@isbd.net - 2014-09-30 18:30 +0100
              Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Chris Angelico <rosuav@gmail.com> - 2014-10-01 03:49 +1000
        Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? Rustom Mody <rustompmody@gmail.com> - 2014-10-16 18:24 -0700
  Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? "Neil D. Cerutti" <neilc@norwich.edu> - 2014-09-30 12:16 -0400
    Re: Keepin constants, configuration values, etc. in Python - dedicated module or what? cl@isbd.net - 2014-09-30 18:50 +0100

csiph-web