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 <1443797715.28.0.835497360735.issue25299@psf.upfronthosting.co.za>
In-reply-to
Content
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/argparse.py", line 1336, in add_argument
    action = action_class(**kwargs)
TypeError: __init__() missing 1 required positional argument: 'const'
History
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: <1443797715.28.0.835497360735.issue25299@psf.upfronthosting.co.za>
2015-10-02 14:55:15r.david.murraylinkissue25299 messages
2015-10-02 14:55:14r.david.murraycreate