[issue16399] argparse: append action with default list adds to list instead of overriding

Roy Smith report at bugs.python.org
Wed Dec 25 16:03:02 EST 2019


Roy Smith <roy at panix.com> added the comment:

I just got bit by this in Python 3.5.3.

I get why it does this.  I also get why it's impractical to change the behavior now.  But, it really isn't the obvious behavior, so it should be documented at https://docs.python.org/3.5/library/argparse.html?highlight=argparse#default.

----------
nosy: +roysmith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue16399>
_______________________________________


More information about the Python-bugs-list mailing list