A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-November/029990.html below:

[Python-Dev] ConfigParser with a single section

[Python-Dev] ConfigParser with a single section [Python-Dev] ConfigParser with a single sectionMartin v. Loewis martin@v.loewis.de
08 Nov 2002 09:09:31 +0100
pf@artcom-gmbh.de (Peter Funk) writes:

> a typical Linux system is populated with a lot of "sectionless"
> config files in /etc/sysconfig.  With the proposed change 
> ConfigParser would be able to read these files. 

These are really shell scripts, right? I doubt ConfigParser could read
those in their full generality, since it does not support # comments
except in column 1.

However, in most cases, such files can be easily read with execfile,
passing an empty dictionary.

> The concept of sections is in fact an additional mental model
> only needed for more complicated configuration files.  

Indeed, these are the files implemented in ConfigParser.

Regards,
Martin



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4