This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients docs@python, ncoghlan
Date 2019-06-28.09:23:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561713800.79.0.286500391609.issue37438@roundup.psfhosted.org>
In-reply-to
Content
Reviewing some code today, I came across a ConfigParser.set() call that only specified the section and key, with the value argument missing.

If you look at the ConfigParser.set() docs, this seems like incorrect code, as those docs indicate that the value argument is a required parameter: https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.set

However, checking the code shows that:

1. "value" has a default value of None
2. if "allow_no_value" is passed to the constructor, passing "None" as the value will be interpreted as a request to add a key-only entry to the section with no equals sign
History
Date User Action Args
2019-06-28 09:23:20ncoghlansetrecipients: + ncoghlan, docs@python
2019-06-28 09:23:20ncoghlansetmessageid: <1561713800.79.0.286500391609.issue37438@roundup.psfhosted.org>
2019-06-28 09:23:20ncoghlanlinkissue37438 messages
2019-06-28 09:23:20ncoghlancreate