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 nanjekyejoannah
Recipients A. Skrobov, docs@python, nanjekyejoannah, paul.j3, r.david.murray
Date 2019-08-16.17:26:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565976362.43.0.231300962264.issue25299@roundup.psfhosted.org>
In-reply-to
Content
> this argument defaults to "None"

Am leaning to the fact that this works as required. The documentation does not just say defaults to none. It says:

With the 'store_const' and 'append_const' actions, the const keyword argument must be given. For other actions, it defaults to None.

In the scenario, you have given, you are using 'store_const' so the const keyword argument must be given.

This should be closed If you agree with what I have just stated.
History
Date User Action Args
2019-08-16 17:26:02nanjekyejoannahsetrecipients: + nanjekyejoannah, r.david.murray, docs@python, paul.j3, A. Skrobov
2019-08-16 17:26:02nanjekyejoannahsetmessageid: <1565976362.43.0.231300962264.issue25299@roundup.psfhosted.org>
2019-08-16 17:26:02nanjekyejoannahlinkissue25299 messages
2019-08-16 17:26:02nanjekyejoannahcreate