Serhiy Storchaka <storchaka+cpyt...@gmail.com> 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 files containing such 
prefixes. For example "background=#ffffff" or 
"path=C:\Python\bin;D:\Users\Me\bin" if use standard comment prefixes "#" and 
";". This is why it is disabled by default.

----------
nosy: +serhiy.storchaka

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

Reply via email to