Terry J. Reedy added the comment:
Please report back on the pip issue to read more of the doc, about inline
comments in
https://docs.python.org/3/library/configparser.html#customizing-parser-behaviour
like I should have before writing what I did.
--
resolution: -> not a bug
stage:
Diego Ramirez added the comment:
Hi Terry, I didn't see your response. I think this won't be possible, taking in
count the comment that Serhiy posted:
> By default configparser does not support inline comments. "# percentage sign
> '%'" is a part of value. If you want to support inline
Serhiy Storchaka added the comment:
By default configparser does not support inline comments. "# percentage sign
'%'" is a part of value. If you want to support inline comments you should pass
the inline_comment_prefixes argument.
But note that it can break parsing existing valid config
Terry J. Reedy added the comment:
Make PR branch from main, which I used for testing. I verified issue on 3.10
and 3.9, so we will backport.
--
stage: needs patch -> test needed
title: Configparser fails when the file contains $ inside a comment ->
Configparser fails when the .cfg