[issue16399] argparse: append action with default list adds to list instead of overriding
Changes by Markus Amalthea Magnuson : -- title: argparse: -> argparse: append action with default list adds to list instead of overriding ___ Python tracker <http://bugs.python.org/issu
[issue16399] argparse:
New submission from Markus Amalthea Magnuson: If the default value for a flag is a list, and the action append is used, argparse doesn't seem to override the default, but instead adding to it. I did this test script: import argparse parser = argparse.ArgumentParser() parser.add_arg