[New-bugs-announce] [issue15847] parse_args stopped accepting tuples
Zbyszek Jędrzejewski-Szmek
report at bugs.python.org
Sun Sep 2 15:12:15 CEST 2012
New submission from Zbyszek Jędrzejewski-Szmek:
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.
----------
components: Library (Lib)
files: argparse_parse_args_tuple.diff
keywords: patch
messages: 169695
nosy: bethard, r.david.murray, zbysz
priority: normal
severity: normal
status: open
title: parse_args stopped accepting tuples
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file27095/argparse_parse_args_tuple.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15847>
_______________________________________
More information about the New-bugs-announce
mailing list