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 <>
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. 

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