What features of ConfigObj bzr actually used?

Alexander Belchenko bialix at ukr.net
Fri Jan 4 08:53:57 GMT 2008


Matt Nordhoff пишет:
> John Arbash Meinel wrote:
>> Alexander Belchenko wrote:
>>> I just wonder what actually features of ConfigObj bzr used?
>>> The main killer feature of ConfigObj IIUC is preserving config file
>>> format. That's all bzr need? Or there is some other?
>> I think the biggest thing that is used is write-support. It is nice that
>> it preserves the files and comments and such. Probably people are used
>> to that, so we wouldn't want to lose it.
> 
> I keep my locations.conf nicely formatted and commented, so I'd really
> hate to lose that.

Do you using inline comments? I.e. something like:

name = value  # comment

> 
> I have backups of the file, so it would still be usable, but it would
> really suck.
> 
>> I think ConfigObj supports nested sections somehow. I don't think we
>> actually make use of that.
>>
>> I don't think we use its built-in support for parsing lists, or any sort
>> of special key. We pretty much just use it as a key => string map.
> 
>>From a previous discussion of ConfigObj's impact on startup time, you
> don't use the lists.
> 
> I haven't seen any use of nested sections.
> 
> <snip>




More information about the bazaar mailing list