Brett Cannon schrieb:
> On Thu, Sep 17, 2009 at 09:53, Mats Kindahl <m...@sun.com> wrote:
>> Hi all,
>>
>> I am currently using the ConfigParser module to parse MySQL configuration 
>> files.
>>  Just plain config files, nothing fancy except... options without values.
>>
>> There is a number of options here that does not require a value, they are
>> basically just turning on a feature. They are also common in the standard
>> template files for the server. Options that are for mysqld can have a value 
>> even
>> though it is not required and the option file parser will not complain, but 
>> for
>> some of the client tools, values may not be given or there will be a error.
>>
>> Looking at the tests of ConfigParser, I see that it is a deliberate design
>> decision to not allow options without values (or I am misunderstanding
>> something). Why?
>>
> 
> Who knows. =) Module is old enough it's quite possible no one
> remembers why.

Good point.  There's also an awful shortage of config parsers in the standard
library; we should add one or two.

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

_______________________________________________
stdlib-sig mailing list
stdlib-sig@python.org
http://mail.python.org/mailman/listinfo/stdlib-sig

Reply via email to