Author kernc
Recipients kernc
Date 2014-08-22.18:22:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
ConfigParser does not handle files that specify options in the "global" section (first option specified before any section is). This configuration "behavior" is present in the configuration files in the wild [1, 2], and while the naive workaround is simple, ... really?!

The support for section-less configuration would also play nice with various "POSIX-compatible config files" (think /etc/default/*, /etc/os-release, ...).

Ideally, the support could be enabled by default or only when `strict=False` constructor argument is supplied. The options in this global section could likely be accessed in the empty ('') section, e.g. `config.get('', 'option')`.

Thus, ConfigParser could finally really replace the venerable ConfigObj [3].

Date User Action Args
2014-08-22 18:22:48kerncsetrecipients: + kernc
2014-08-22 18:22:48kerncsetmessageid: <>
2014-08-22 18:22:48kernclinkissue22253 messages
2014-08-22 18:22:47kernccreate