Hello Nicola,
There is an updated version of configobj in SVN.
It now preserves all comments in config files. (and has no writein method).
It's not yet documented - I've broken the test in ``_handle_comments``
and done no new tests for the new functionality :-)
These things will come.
As a side effect - you can now have multiple lines of comments above a
section marker or key. Any comments above the *first* key/section will
be put in ``initial_comment though`` !
I want to improve error handling (give the exceptions line number and
original line attributes) and slightly change the way validation works.
When that's done - it's just the documentation and it's ready....
(slowly getting there).
Best Regards,
Fuzzyman
http://www.voidspace.org.uk/python
|