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 wolma
Recipients ajstewart, wolma
Date 2016-11-18.16:16:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479485796.85.0.226261206118.issue28734@psf.upfronthosting.co.za>
In-reply-to
Content
try this:
parser.add_argument('file', nargs='?', default = argparse.SUPPRESS)

I don't think this is a bug. The default for the default parameter is None so the behavior is consistent with the documentation.
History
Date User Action Args
2016-11-18 16:16:36wolmasetrecipients: + wolma, ajstewart
2016-11-18 16:16:36wolmasetmessageid: <1479485796.85.0.226261206118.issue28734@psf.upfronthosting.co.za>
2016-11-18 16:16:36wolmalinkissue28734 messages
2016-11-18 16:16:36wolmacreate