[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

telmich report at bugs.python.org
Wed Oct 24 15:11:18 CEST 2012


telmich added the comment:

Having a closer look at the changes using hg diff -r v3.2:v3.3.0 Lib/argparse.py, it seems the following removal could be related to the different behaviour:


-        # if we didn't use all the Positional objects, there were too few
-        # arg strings supplied.
-        if positionals:
-            self.error(_('too few arguments'))
-

[15:09] brief:cpython% hg grep "if positionals:" Lib/argparse.py    
Lib/argparse.py:79016:        if positionals:

And this seems to be the relevant change:

changeset:   70741:cab204a79e09
user:        R David Murray <rdmurray at bitdance.com>
date:        Thu Jun 09 12:34:07 2011 -0400
summary:     #10424: argument names are now included in the missing argument message

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16308>
_______________________________________


More information about the Python-bugs-list mailing list