[stdlib-sig] ConfigParser - parsing options with no value

R. David Murray rdmurray at bitdance.com
Thu Sep 17 22:34:20 CEST 2009


On Thu, 17 Sep 2009 at 22:28, Mats Kindahl wrote:
> Where should I post such patches and what is people opinion of these to
> alternatives?

The bug tracker (bugs.python.org).

> Another consideration is how to allow this extension. It would be possible to
> add flags to allow new and old behaviour, but I don't know how much value people
> attribute to be able to get an exception if there is no value for the option.

Python's philosophy is to remain backward compatible, so this new
behavior should be controlled by an option of some sort whose default
value is the old behavior.

> I am also thinking that some option files have extensions to be able to include
> files (MySQL option parsing package has), so it might be a good idea to add
> callbacks to handle unrecognized lines, allowing the callback to inject text
> into the parsing stream to, for example, support include files or even a macro
> language.

That should be a separate feature request/tracker issue/patch.

--David


More information about the stdlib-sig mailing list