[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-09 Thread Alan Evangelista
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

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-10 Thread Alan Evangelista
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

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-16 Thread Alan Evangelista
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

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-16 Thread Alan Evangelista
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

[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-09 Thread Alan Evangelista
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'

[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-09 Thread Alan Evangelista
Changes by Alan Evangelista : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue22375> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22376] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result

2014-09-09 Thread Alan Evangelista
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'

[issue22376] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result

2014-09-10 Thread Alan Evangelista
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