[issue25299] TypeError: __init__() takes at least 4 arguments (4 given)

Joannah Nanjekye report at bugs.python.org
Fri Aug 16 13:26:02 EDT 2019


Joannah Nanjekye <nanjekyejoannah at gmail.com> added the comment:

> 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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue25299>
_______________________________________


More information about the Python-bugs-list mailing list