[issue9026] argparse subcommands not printed in the same order they were added

2015-04-02 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: You are right, this problem is not coming from python itself, but more from setuptools and its use by scoop. See https://github.com/soravux/scoop/issues/16 and http://stackoverflow.com/questions/29374044/ for details Regards, Davide Del Vento, NCAR Computation

[issue9026] argparse subcommands not printed in the same order they were added

2015-04-02 Thread Ned Deily
Ned Deily added the comment: @ddvento: This issue has been closed and the fixes for it released several years ago. Comments added here will likely be ignored. If you believe there is a problem with current releases (for Python 2, Python 2.7.9 is current), please open a new issue and document

[issue9026] argparse subcommands not printed in the same order they were added

2015-04-01 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: This problem is occurring again in python 2.7.7, can we open it again? -- nosy: +ddve...@ucar.edu ___ Python tracker ___ __

[issue9026] argparse subcommands not printed in the same order they were added

2011-03-27 Thread Steven Bethard
Steven Bethard added the comment: Sorry for letting this bug sit around for so long. I committed a slight variant of your patch to 2.7, 3.2 and 3.3. Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3

[issue9026] argparse subcommands not printed in the same order they were added

2011-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75ec20b4c50e by Steven Bethard in branch '2.7': Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.) http://hg.python.org/cpython/rev/75ec20b4c50e -- ___ Python tracker

[issue9026] argparse subcommands not printed in the same order they were added

2011-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74f9ed48ae5d by Steven Bethard in branch '3.2': Issue #9026: Fix order of argparse sub-commands in help messages. http://hg.python.org/cpython/rev/74f9ed48ae5d New changeset de29472c6a84 by Steven Bethard in branch 'default': Issue #9026: Fix order

[issue9026] argparse subcommands not printed in the same order they were added

2010-07-23 Thread Javier Collado
Javier Collado added the comment: The hasattr expressions were added to TestHelpFormattingMetaclass because: - A new attribute (subparsers_signature) was added in test classes that wasn't used in the past. - The new test classes didn't make use of some of the already in place attributes (argum

[issue9026] argparse subcommands not printed in the same order they were added

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: In py3k.diff, the changes to argparse and new test cases look good to me. I don’t know why you’ve added hasattr tests in test_argparse.py. -- stage: unit test needed -> patch review title: [argparse] Subcommands not printed in the same order they were add

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado added the comment: Just for the record, please find attached an uglier patch for python < 2.7 that doesn't have the same problems as the first one I uploaded and passes all the test cases (tested with python 2.6). -- Added file: http://bugs.python.org/file17733/pre27.di

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado added the comment: Despite trunk.diff can be successfully applied to py3k branch, please find attached the patch generated from py3k branch. -- Added file: http://bugs.python.org/file17731/py3k.diff ___ Python tracker

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Changes by Javier Collado : Removed file: http://bugs.python.org/file17705/ordered_subcommands.diff ___ Python tracker ___ ___ Python-bugs-list

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado added the comment: Finally I had to use an OrderedDict as suggested by R. David Murray because it wasn't safe to rely on _choices_actions in HelpFormatter class (i.e. previous patch wasn't valid): - _choices_actions attribute is only present in _SubParsersAction class - Even if

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-21 Thread Javier Collado
Javier Collado added the comment: Working on it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-19 Thread Éric Araujo
Éric Araujo added the comment: Guidelines: http://www.python.org/dev/patches/ -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-19 Thread Steven Bethard
Steven Bethard added the comment: Yes, please generate patches from the Python repository. Thanks! -- ___ Python tracker ___ ___ Pyth

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the nice report and patch! I don’t know if Steven maintains argparse first in Python’s repository and then makes external releases or if he touches first his argparse repo and then Python’s, but if it’s the former, please generate your diff again from

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-18 Thread R. David Murray
R. David Murray added the comment: Sorry, "simpler" was the wrong choice of word :) Anyway, it's up to Steven. -- ___ Python tracker ___

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-18 Thread Javier
Javier added the comment: While the ordered dict is a nice option, the one-line patch that is attached to the report works in python < 2.7 without adding any external dependency. In my opininion, that's interesting for those using argparse with earlier versions of python. -- ___

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-18 Thread R. David Murray
R. David Murray added the comment: It would be simpler to use an OrderedDict. -- nosy: +r.david.murray ___ Python tracker ___ ___ Pyth

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-18 Thread Steven Bethard
Changes by Steven Bethard : -- assignee: -> bethard nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-18 Thread Javier
Javier added the comment: It contains a patch that worked for me to preserve the ordering used in the code. To make that possible it uses action._choices_actions (a list) instead of action.choices (a dictionary). -- keywords: +patch Added file: http://bugs.python.org/file17705/ordere

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-18 Thread Javier
New submission from Javier : What steps will reproduce the problem? 1. Run 'python subcommands.py -h' (attached file) 2. Check the ordering of the subcommands in the output: subcommands: {a,c,b,e,d} a a subcommand help b b subcommand help c c subcomma