Author paul.moore
Recipients gvanrossum, kernc, lukasz.langa, martin.panter, paul.moore, tshepang
Date 2014-09-08.17:35:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410197732.95.0.329963365957.issue22253@psf.upfronthosting.co.za>
In-reply-to
Content
It's not unreasonable as a new feature, but the default behaviour shouldn't change. It matches ini files (like it or not, ConfigParser parses ini-style files - the docs even say so), and sectionless values are not standard ini format.

I'd suggest a new __init__ option, allow_unnamed_section (default False) that permits variables to be placed before the first section header. I'd further suggest that the names be treated as if they were in a section with name '', for consistency of access with other sections.

It's plausible that people might want the defaults section to be the unnamed section. If so, that could be another option, default_is_unnamed (default False, if True this implies allow_unnamed_section). But I'm not sure the additional complexity is worth it.
History
Date User Action Args
2014-09-08 17:35:33paul.mooresetrecipients: + paul.moore, gvanrossum, lukasz.langa, tshepang, martin.panter, kernc
2014-09-08 17:35:32paul.mooresetmessageid: <1410197732.95.0.329963365957.issue22253@psf.upfronthosting.co.za>
2014-09-08 17:35:32paul.moorelinkissue22253 messages
2014-09-08 17:35:32paul.moorecreate