Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23058
___
___
Python-bugs-list mailing
Barry A. Warsaw added the comment:
Wouldn't it be safer all around if the subparsers took different arguments,
or at least different namespace 'dest', than the main parser?
IMHO, yes. I agree that the semantics of what the original code is trying to
do is quite ambiguous. Since the
Changes by paul j3 ajipa...@gmail.com:
--
nosy: +paul.j3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23058
___
___
Python-bugs-list mailing list
paul j3 added the comment:
Without actually running this case I think it is caused by the
http://bugs.python.org/issue9351 patch.
You can check the __call__ method for class _SubParsersAction and how it
handles invocation of the subparser. Does it get the existing namespace, or a
new one
Changes by Gregory P. Smith g...@krypto.org:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23058
___
___
Changes by Gregory P. Smith g...@krypto.org:
--
nosy: +nailor, r.david.murray
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23058
___
Rémi Rampin added the comment:
I might use your workaround in ReproZip
(https://github.com/ViDA-NYU/reprozip/issues/89), thanks. I agree that it
doesn't look pretty...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23058
Changaco added the comment:
honcho has been affected by this:
https://github.com/nickstenning/honcho/issues/122
Working around the problem is possible but not very pretty:
https://github.com/nickstenning/honcho/pull/121
--
nosy: +Changaco
___
New submission from Rémi Rampin:
This works correctly on Python 3.4.
On Python 2.7, argparse seems to completely and silently ignore arguments in
some conditions, for instance this setup will cause --verbose to be ignored on
the main parser:
options =
Rémi Rampin added the comment:
Interestingly, this worked before my upgrade 2.7.8 - 2.7.9.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23058
___
10 matches
Mail list logo