[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 <rep...@bugs.python.org> <http://bugs.python.org/i

[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 not affect

[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 tr

[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 --<any_suffix)> in the main parser and call the Python executable with python -- argparse fails with: error: ambiguous option: -- could match --, -- This probably happe

Re: Structure of program development

2016-07-04 Thread Alan Evangelista
I am new to this programming adventure. I've gotten past the introductory chapters in 'How to..." books and now want to start developing a much more complicated program that I will use repeated for different applications. When I worked in Perl there was an option to write a program in a text

Re: Recommendation for Object-Oriented systems to study

2016-06-02 Thread Alan Evangelista
On 06/02/2016 02:44 AM, Lawrence D’Oliveiro wrote: On Monday, May 30, 2016 at 7:17:47 AM UTC+12, Alan Evangelista wrote: - Java forces everything to be implemented in OO model (classes) After you have spend a few months battering your head against the rigidity and verbosity of Java, you

Re: Recommendation for Object-Oriented systems to study

2016-05-29 Thread Alan Evangelista
as more pragmatic, more flexible and quicker/easier/less bureaucratic to develop than Java, so my opinion may be controversial. Regards, Alan Evangelista -- https://mail.python.org/mailman/listinfo/python-list

Re: for / while else doesn't make sense

2016-05-23 Thread Alan Evangelista
On 05/23/2016 02:52 PM, Ian Kelly wrote: On Mon, May 23, 2016 at 11:44 AM, Random832 wrote: On Mon, May 23, 2016, at 13:33, Chris Angelico wrote: and then you can use the special "tagged literal" syntax, like with special forms of string literal: f*22/7 + f*2/11

Re: PEP proposal: sequence expansion support for yield statement: yield *

2016-04-20 Thread Alan Evangelista
by looking at it. I favor a more intuitive syntax over a more concise one. Regards, Alan Evangelista -- https://mail.python.org/mailman/listinfo/python-list

Re: Instalação

2016-03-30 Thread Alan Evangelista
the more popular Python 2 version. Its latest version is 2.7.11. I recommend you download the Python 2.7.11 x86_64 MSI installer in https://www.python.org/ftp/python/2.7.11/python-2.7.11.amd64.msi - run the installer Python is installed. You can run it from the command line. Regards, Alan

msgfmt.py and pygettext.py are LGPL or LGPL-compatible?

2015-05-25 Thread Alan Evangelista
quite inactive. Regards, Alan Evangelista -- https://mail.python.org/mailman/listinfo/python-list

Re: msgfmt.py and pygettext.py are LGPL or LGPL-compatible?

2015-05-25 Thread Alan Evangelista
On 05/25/2015 08:13 PM, Chris Angelico wrote: On Tue, May 26, 2015 at 4:42 AM, Alan Evangelista ala...@linux.vnet.ibm.com wrote: https://docs.python.org/2/library/gettext.html suggests that I use msgfmt.py and pygettext.py, available at Python Subversion ( http://svn.python.org/view/python

[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 issue 15002

[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://user:password@server/packages/repodata').read().splitlines() Output: list of files Try 2 - import urllib2 urllib2.urlopen('ftp://user:password@server/packages

[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 ala...@br.ibm.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22375 ___ ___ Python-bugs

[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://user:password@server/packages/repodata').read().splitlines() Output: list of files Try 2 - import urllib2 urllib2.urlopen('ftp://user:password@server/packages