This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mkindahl
Recipients fdrake, mkindahl
Date 2009-09-28.09:32:40
SpamBayes Score 1.9868613e-09
Marked as misclassified No
Message-id <4AC07DC6.9030804@sun.com>
In-reply-to <1254083651.93.0.00506343936476.issue7005@psf.upfronthosting.co.za>
Content
Fred L. Drake, Jr. wrote:
> Fred L. Drake, Jr. <fdrake@acm.org> added the comment:
> 
> The test "value is not None" in line 620 (of the new version) could be
> just "value" and get a little more value from less code.

OK.

> 
> I don't think I've ever run across a sample .ini-style file that used
> unspecified values, though it's frequently done in "flat" configuration
> files.
> 
> Have you come across an existing configuration format that uses the
> [section] markers and unspecified values, or is this really a new use-case?

It is very common in my.cnf files for MySQL, and has been so "for ever." For
example, the default my.cnf file that is installed on my Debian (Ubuntu) system
have several options without values (e.g., skip-external-locking, quick, and
quote-names).

Best wishes,
Mats Kindahl

> 
> ----------
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue7005>
> _______________________________________
History
Date User Action Args
2009-09-28 09:32:42mkindahlsetrecipients: + mkindahl, fdrake
2009-09-28 09:32:40mkindahllinkissue7005 messages
2009-09-28 09:32:40mkindahlcreate