This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients bethard, paul.j3, rgov
Date 2018-12-26.22:49:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545864570.8.0.128680866357.issue35495@roundup.psfhosted.org>
In-reply-to
Content
argparse.REMAINDER matches an empty list of arguments, just like '?' and '*'.  So they are always 'filled', even by `parse_args([])`.

'?' and '*' have some special handling of defaults in this case, see in

    argparse.ArgumentParser._get_values

the two 

    value = action.default

REMAINDER has its own section in the function that does nothing with the default.

I think it should be left as is.
History
Date User Action Args
2018-12-26 22:49:32paul.j3setrecipients: + paul.j3, bethard, rgov
2018-12-26 22:49:30paul.j3setmessageid: <1545864570.8.0.128680866357.issue35495@roundup.psfhosted.org>
2018-12-26 22:49:30paul.j3linkissue35495 messages
2018-12-26 22:49:30paul.j3create