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 dbagnall
Recipients dbagnall
Date 2015-07-30.09:56:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438250218.94.0.699008040775.issue24754@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-07-30 09:56:59dbagnallsetrecipients: + dbagnall
2015-07-30 09:56:58dbagnallsetmessageid: <1438250218.94.0.699008040775.issue24754@psf.upfronthosting.co.za>
2015-07-30 09:56:58dbagnalllinkissue24754 messages
2015-07-30 09:56:58dbagnallcreate