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 zygocephalus
Recipients zygocephalus
Date 2019-06-04.13:22:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559654520.68.0.135252915467.issue37150@roundup.psfhosted.org>
In-reply-to
Content
There is a possibility that someone (like me) accidentally will omit parentheses with FileType arguments after FileType, and parser will contain wrong file until someone will try to use it. 

Example:
parser = argparse.ArgumentParser()
parser.add_argument('-x', type=argparse.FileType)
History
Date User Action Args
2019-06-04 13:22:00zygocephalussetrecipients: + zygocephalus
2019-06-04 13:22:00zygocephalussetmessageid: <1559654520.68.0.135252915467.issue37150@roundup.psfhosted.org>
2019-06-04 13:22:00zygocephaluslinkissue37150 messages
2019-06-04 13:22:00zygocephaluscreate