Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31773
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| 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; 'parser': 0.07; 'subject:file': 0.07; 'ex:': 0.09; 'hierarchical': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'specifying': 0.09; 'sections': 0.13; 'hierarchy': 0.16; 'nesting': 0.16; 'oct': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'config': 0.17; 'define': 0.20; 'parameters': 0.20; 'all,': 0.21; 'keys': 0.22; '(which': 0.26; 'header:X-Complaints-To:1': 0.28; 'fri,': 0.30; 'file': 0.32; 'structure': 0.32; 'like:': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'something': 0.35; 'next': 0.35; 'received:org': 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'level': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'skip:u 10': 0.60; 'identify': 0.61; 'believe': 0.69; 'ini': 0.84; 'dennis': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
| Subject | Re: section with in a section config file and reading that config file |
| Date | Fri, 19 Oct 2012 17:46:56 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | <b5307867-0aa6-49db-b58d-803850a60d2d@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | adsl-76-249-17-7.dsl.klmzmi.sbcglobal.net |
| X-Newsreader | Forte Agent 3.3/32.846 |
| X-No-Archive | YES |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2536.1350683236.27098.python-list@python.org> (permalink) |
| Lines | 47 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1350683236 news.xs4all.nl 6869 [2001:888:2000:d::a6]:47442 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31773 |
Show key headers only | View raw
On Fri, 19 Oct 2012 02:51:13 -0700 (PDT), kampy
<narasimha18sv@gmail.com> declaimed the following in
gmane.comp.python.general:
> hi all,
> my requirement is to have section with in a section in config parameters
> ex:
> [AAA]
> [BBB]
> a=1
> b=1
> [CCC]
> a=1
> b=2
> Any one help me in understanding how to make sure that config file to have a structure like this and reading with the config parser
INI file structure (which I believe the config file follows) does not
support hierarchical sections. What you CAN do is something like:
[TopLevels]
topsections=AAA, DDD
[AAA]
sections=BBB, CCC
[BBB]
a=1
b=1
[CCC]
a=1
b=2
[DDD]
sections=EEE
[EEE]
a=3
b=4
In other words, YOU have to define the nesting hierarchy by
specifying keys that identify the sections in the next level down.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
section with in a section config file and reading that config file kampy <narasimha18sv@gmail.com> - 2012-10-19 02:51 -0700
Re: section with in a section config file and reading that config file Tarek Ziadé <tarek@ziade.org> - 2012-10-19 12:09 +0200
Re: section with in a section config file and reading that config file narasimha18sv@gmail.com - 2012-10-19 03:22 -0700
Re: section with in a section config file and reading that config file Tarek Ziadé <tarek@ziade.org> - 2012-10-19 15:57 +0200
Re: section with in a section config file and reading that config file rusi <rustompmody@gmail.com> - 2012-10-19 07:26 -0700
Re: section with in a section config file and reading that config file narasimha18sv@gmail.com - 2012-10-19 03:22 -0700
Re: section with in a section config file and reading that config file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-19 21:29 +0000
Re: section with in a section config file and reading that config file Tarek Ziadé <tarek@ziade.org> - 2012-10-19 23:59 +0200
Re: section with in a section config file and reading that config file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-19 22:59 +0000
Re: section with in a section config file and reading that config file Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-10-19 17:46 -0400
csiph-web