Re: The argparse docs don't say who's responsible for closing FileType objects

2017-05-30 Thread Peter Otten
Bob Kline wrote: > 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

Re: The argparse docs don't say who's responsible for closing FileType objects

2017-01-25 Thread alister
On Wed, 25 Jan 2017 07:16:24 -0800, Bob Kline wrote: > 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

The argparse docs don't say who's responsible for closing FileType objects

2017-01-25 Thread Bob Kline
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