The codes are like this:
if line.split(None, 1)[0].lower() == 'rem' and line[0] in "rR":
# no leading whitespace
continue
I think this means if I write a config like this:
[memo]
rem ember_last = True
The line starts with rem ember_last will be ignored.
Why was the ConfigParser designed like this?
remin Batch is used to add comments, i.e. it’s a command that essentially does nothing. It seems that this decision was carried over to configuration files:However,
remand the actual comments are always separated by whitespace so it makes no sense that a configuration optionrememberwould be ignored (onlyrem emberwould). The code you posted confirms this, as the following shows:So, your problems seems to be something else.