ANN: ConfigObj 4.3.0

Fuzzyman fuzzyman at
Sat Apr 8 00:07:40 CEST 2006

`ConfigObj 4.3.0 <>`_
is now released.

This has several bugfixes, as well as *several* major feature

You can download it from :

   ` 244Kb

.. raw:: html

    {title;What is ConfigObj ?}

**ConfigObj** is a simple but powerful config file reader and writer:
an *ini
file round tripper*. Its main feature is that it is very easy to use,
with a
straightforward programmer's interface and a simple syntax for config
It has lots of other features though :

* Nested sections (subsections), to any level
* List values
* Multiple line values
* String interpolation (substitution)
* Integrated with a powerful validation system

    - including automatic type checking/conversion
    - repeated sections
    - and allowing default values

* All comments in the file are preserved
* The order of keys/sections is preserved
* No external dependencies
* Full Unicode support
* A powerful ``unrepr`` mode for storing basic datatypes

.. raw:: html

    {title;What's New ?}

Moved the tests and the CHANGELOG (etc) into a separate file. This has
reduced the size of ```` by about 40%.

Added the ``unrepr`` mode to reading and writing config files. Thanks
to Kevin Dangoor for this suggestion.

Empty values are now valid syntax. They are read as an empty string
(``key =``, or ``key = # comment``.)

``validate`` now honours the order of the configspec.

Added the ``copy`` mode to validate. Thanks to Louis Cordier for this

Fixed bug where files written on windows could be given ``'\r\r\n'``

Fixed bug where last occurring comment line could be interpreted as the
final comment if the last line isn't terminated.

Fixed bug where nested list values would be flattened when ``write`` is
called. Now sub-lists have a string representation written instead.

Deprecated ``encode`` and ``decode`` methods instead.

You can now pass in a ConfigObj instance as a configspec (remember to
the configspec file using ``list_values=False``).

More information about the Python-announce-list mailing list