R. David Murray added the comment:
This is a duplicate of issue 20923, which was rejected. To argue against the
rejection you probably need to provide evidence that this is something that is
actually supported by other common ini parsers. And that evidence should be
posted to issue 20923.
-
New submission from Sebastian Bank:
ConfigParser parses section lines containing square brackets like '[spam [eggs]
spam]' up to the first instead of the last occurrence of ']' preventing
roundtrips:
>>> s = StringIO()
>>> c1 = ConfigParser()
>>> c1.add_section('spam [eggs]')
>>> c1.write(s)
>