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 zbysz
Recipients bethard, r.david.murray, zbysz
Date 2012-09-02.13:12:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346591535.01.0.313863035332.issue15847@psf.upfronthosting.co.za>
In-reply-to
Content
After recent change (78307 '#13922: argparse no longer incorrectly strips '--' after the first one.'), parse_args stopped working with a tuple
argument. It is easy to pass tuple to argparse by using positional function arguments:

def f(*args):
   parser.parse_args(args)

This will fail, because args is a tuple.

It is necessary to have at least one positional argument to trigger the bug.
History
Date User Action Args
2012-09-02 13:12:15zbyszsetrecipients: + zbysz, bethard, r.david.murray
2012-09-02 13:12:15zbyszsetmessageid: <1346591535.01.0.313863035332.issue15847@psf.upfronthosting.co.za>
2012-09-02 13:12:14zbyszlinkissue15847 messages
2012-09-02 13:12:14zbyszcreate