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 <>
The docs specify what argparse.FileType() does via the default parameters:

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.
Date User Action Args
2019-06-04 20:44:14josh.rsetrecipients: + josh.r, paul.j3, mangrisano, zygocephalus
2019-06-04 20:44:14josh.rsetmessageid: <>
2019-06-04 20:44:14josh.rlinkissue37150 messages
2019-06-04 20:44:14josh.rcreate