The argparse docs don't say who's responsible for closing FileType objects
bkline at rksystems.com
Wed Jan 25 10:16:24 EST 2017
The subject line pretty much says it all. Should the programmer close the file? If the programmer does that, and the user has asked that the file object be hooked up to standard in (or standard out) what will happen? If the programmer doesn't close it, does it get closed cleanly in the face of an exception?
More information about the Python-list