Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'subject:skip:c 10': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'readable': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'language': 0.19; 'lawrence': 0.22; 'file.': 0.22; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'handled': 0.29; 'language.': 0.32; 'subject:) ': 0.32; 'file': 0.34; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'format': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'flat': 0.63; 'more': 0.63; 'our': 0.64; 'skip:\xe2 10': 0.70; 'cecil': 0.84; 'commenting': 0.84; 'pythonistas,': 0.84; 'westerhof': 0.84; '8bit%:33': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Most Pythonic way to store (small) configuration Date: Sun, 2 Aug 2015 16:12:13 +0100 References: <87k2teq9tb.fsf@Equus.decebal.nl> <85k2tdlxbg.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-78-147-187-35.as13285.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <85k2tdlxbg.fsf@benfinney.id.au> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1438528348 news.xs4all.nl 2960 [2001:888:2000:d::a6]:48407 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94898 On 02/08/2015 12:54, Ben Finney wrote: > Cecil Westerhof writes: > >> Because of this I think a human readable file would be best. > > The “INI” format as handled by the Python ‘configparser’ module is what > I would recommend for a simple flat configuration file. It is more > intuitive to edit, and has a conventional commenting format. +1 -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence