New submission from Alan Evangelista:
If you have a argument named -- in a subparser and two arguments named
-- in the main parser and call the Python executable with
python --
argparse fails with:
error: ambiguous option: -- could match --,
--
This probably happens due to how the
Alan Evangelista added the comment:
Adding the feature was just a workaround suggestion, but this is a bug.
Arguments in the main parser should not "hide" an argument in a subparser in
argument abbreviation.
--
___
Python trac
Alan Evangelista added the comment:
PA> In http://bugs.python.org/issue14910#msg204678 I suggest a subclassing
patch that might work with Py2.
This solves my particular case. I do not use any argument with action='count',
so the regression introduced by the new option does
Alan Evangelista added the comment:
s/Python 2.6/Python 2/ in last comment
--
___
Python tracker
<http://bugs.python.org/issue29777>
___
___
Python-bugs-list m
New submission from Alan Evangelista:
Examples in Python command line:
Try 1
-
>>> import urllib2
urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines()
Output:
Try 2
-
>>> import urllib2
urllib2.urlopen('ftp://:@/packages/repodata'
Changes by Alan Evangelista :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue22375>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Alan Evangelista:
Examples in Python command line:
Try 1
-
>>> import urllib2
urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines()
Output:
Try 2
-
>>> import urllib2
urllib2.urlopen('ftp://:@/packages/repodata'
Alan Evangelista added the comment:
duplicate of #22375. I closed that one because I wanted to edit the original
bug description and I could not, preferred to create a new bug.
R. David Murray's comment in #22375: "I think this was already fixed in is