Message169695
| 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:15 | zbysz | set | recipients:
+ zbysz, bethard, r.david.murray |
| 2012年09月02日 13:12:15 | zbysz | set | messageid: <1346591535.01.0.313863035332.issue15847@psf.upfronthosting.co.za> |
| 2012年09月02日 13:12:14 | zbysz | link | issue15847 messages |
| 2012年09月02日 13:12:14 | zbysz | create |
|