Author paul.j3
Recipients docs@python, lucca.ruhland, paul.j3, rhettinger
Date 2020-09-01.15:42:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I've noted this behavior before.
argparse - subparsers does not retain namespace
argparse set_defaults on subcommands should override top level set_defaults

Due to a change 2012, the subparser gets a new blank `namespace`.  When done those values are copied to the main namespace.  That gives subparser defaults priority over both the main ones, and the user provided namespace.

I don't entirely like that change, but it was made by the original developer.
Date User Action Args
2020-09-01 15:42:45paul.j3setrecipients: + paul.j3, rhettinger, docs@python, lucca.ruhland
2020-09-01 15:42:45paul.j3setmessageid: <>
2020-09-01 15:42:45paul.j3linkissue41684 messages
2020-09-01 15:42:45paul.j3create