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 r.david.murray
Recipients A. Skrobov, docs@python, r.david.murray
Date 2015-10-02.14:55:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Yes, the python2 TypeErrors for mimatched arguments are sub-optimal.  This has been fixed in python3:

>>> parser.add_argument('--foo', help="foo", action='store_const')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rdmurray/python/p36/Lib/", line 1336, in add_argument
    action = action_class(**kwargs)
TypeError: __init__() missing 1 required positional argument: 'const'
Date User Action Args
2015-10-02 14:55:15r.david.murraysetrecipients: + r.david.murray, docs@python, A. Skrobov
2015-10-02 14:55:15r.david.murraysetmessageid: <>
2015-10-02 14:55:15r.david.murraylinkissue25299 messages
2015-10-02 14:55:14r.david.murraycreate