]> granicus.if.org Git - python/commit
#9351: set_defaults on subparser is no longer ignored if set on parent.
authorR David Murray <rdmurray@bitdance.com>
Fri, 17 Oct 2014 23:55:11 +0000 (19:55 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 17 Oct 2014 23:55:11 +0000 (19:55 -0400)
commit7570cbdc6b394cd89990a9252284c7e4a87bd6f1
treef1427aed1d42f7de3dc9c58954e2930f0919aa04
parent685b3495e1fd9853b1ca5960db3e3cb705920d4f
#9351: set_defaults on subparser is no longer ignored if set on parent.

Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored.  Now
the subparser set_defaults is honored.

Patch by Jyrki Pullianinen.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS