[issue14856] argparse: creating an already defined subparsers does not raises an exception
R. David Murray
report at bugs.python.org
Tue May 22 16:51:13 CEST 2012
R. David Murray <rdmurray at bitdance.com> added the comment:
Thanks for the report and patch.
However, since there is no del_parser method, I'm inclined to think that this is not a bug. That is, the ability to overwrite a previously defined subparser could be considered a feature.
If Steven does consider it a bug, I think it can only be fixed in 3.3, since to do otherwise could needlessly break currently-working programs. If it is not a bug, add_parser's behavior when a parser already exist should be documented.
----------
nosy: +bethard, r.david.murray
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14856>
_______________________________________
More information about the Python-bugs-list
mailing list