SilentGhost <ghost....@runbox.com> added the comment:

In your example you're instantiating ConfigParser with default parameters, 
meaning empty_lines_in_values equals True, which leads to key "a" consuming 
everything on the following indented lines. If you're were to specify False as 
the value for empty_lines_in_values, you'd see the desired behaviour.

The examples in documentation work just fine, as long as you copy them exactly. 
The reason they do is that there isn't a final value in the non-indented 
section, but only comments. In any case empty_lines_in_values is what you 
should be using.

----------
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41379>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to