[Rest2web-develop] Down with writein
Brought to you by:
mjfoord
From: Michael F. <mi...@pc...> - 2005-08-03 22:50:44
|
Hello Nico, I've decided to scrap the writein method for ConfigObj - and instead preserve comments above keywords. I intend to preserve inline comments as well - so each Section will have an ``inline_comments`` and a ``comments`` dictionary attached. Each member of ``comments`` will be a *list* of comment lines. I can do this with minor changes to the current implementation. The file format will look like : # initial_comment # preserved # lost # preserved with section marker [section] # also preserved # lost # preserved with key Key = value # also preserved # lost # final_comment # preserved What do you think ? |