New submission from Douglas Bagnall: A line like this:
parser.add_argument('--hello', action="store_true", type=bool) causes a TypeError in 2.7 and 3.4: File "/usr/lib/python3.4/argparse.py", line 1344, in add_argument action = action_class(**kwargs) TypeError: __init__() got an unexpected keyword argument 'type' It shouldn't really. ---------- components: Library (Lib) files: argparse-crash.py messages: 247658 nosy: dbagnall priority: normal severity: normal status: open title: argparse add_argument with action="store_true", type=bool should not crash versions: Python 2.7, Python 3.4 Added file: http://bugs.python.org/file40065/argparse-crash.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24754> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com