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 josh.r
Recipients josh.r, mangrisano, paul.j3, zygocephalus
Date 2019-06-04.20:44:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559681054.56.0.259972330981.issue37150@roundup.psfhosted.org>
In-reply-to
Content
The docs specify what argparse.FileType() does via the default parameters: https://docs.python.org/3/library/argparse.html#argparse.FileType

If you mean what does it do when you fail to call it at all (passing type=argparse.FileType), the answer is the same as any other class: It tries to construct a FileType using the user provided argument as the sole positional argument. So if the user passes a valid mode string, it works, and returns a FileType object with that mode string, otherwise it barfs and dumps an error message for passing an invalid argument for FileType.
History
Date User Action Args
2019-06-04 20:44:14josh.rsetrecipients: + josh.r, paul.j3, mangrisano, zygocephalus
2019-06-04 20:44:14josh.rsetmessageid: <1559681054.56.0.259972330981.issue37150@roundup.psfhosted.org>
2019-06-04 20:44:14josh.rlinkissue37150 messages
2019-06-04 20:44:14josh.rcreate