Message252120
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' |
|
Date |
User |
Action |
Args |
2015-10-02 14:55:15 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, A. Skrobov |
2015-10-02 14:55:15 | r.david.murray | set | messageid: <1443797715.28.0.835497360735.issue25299@psf.upfronthosting.co.za> |
2015-10-02 14:55:15 | r.david.murray | link | issue25299 messages |
2015-10-02 14:55:14 | r.david.murray | create | |
|