[pypy-issue] [issue1595] Inconsistency between CPython an PyPy while using argparse with mutual exclusion

hpaulj tracker at bugs.pypy.org
Tue Sep 10 00:48:11 CEST 2013

hpaulj <hpj3 at myuw.net> added the comment:

I (as paul.j3) have proposed a patch in http://bugs.python.org/issue18943 that 
replaces the 'is not action.default' test.  Instead it makes note in 
`_get_values()` of when it actually sets:`value = action.default`.  Simply being 
equal to the default (whether according to `==` or `is`) is not enough.  This 
should make the behavior consistent across implementations.

There is a quite a backlog of proposed patches for argparse on CPython, so it 
might be some time before this, or some other fix, is approved.

nosy: +hpaulj

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list