Standard config file format

Neil Cerutti neilc at norwich.edu
Wed Apr 6 08:46:43 EDT 2011


On 2011-04-06, Chris Rebert <clp2 at rebertia.com> wrote:
> On Tue, Apr 5, 2011 at 7:16 PM, Vincent Davis
> <vincent at vincentdavis.net> wrote:
>> I am working on a program to monitor directory file changes
>> and am would like a configuration file. This file would
>> specify email addresses, file and directory locations...... Is
>> there a preferred format to use with python?
>
> ConfigParser supports an INI-like format:
> http://docs.python.org/library/configparser.html

A bonus for users of Python 3.2 is that ConfigParser now detects
multiply defined sections. I installed 3.2 yesterday and thus
discovered a bug in a large config file that's been there for
seven years.

-- 
Neil Cerutti



More information about the Python-list mailing list