Author moyix
Recipients gruszczy, moyix, r.david.murray
Date 2011-04-06.19:59:44
SpamBayes Score 1.01616e-06
Marked as misclassified No
Message-id <1302119985.22.0.438422483615.issue11767@psf.upfronthosting.co.za>
In-reply-to
Content
The _factory object didn't open the file, so why should it close it?

It's also worth noting that things one would naturally consider using as factories (like email.message_from_file) don't close the fd when they're done. I will grant that you could easily create a wrapper factory that does close the descriptor in this case, but that's not the obvious thing to do.
History
Date User Action Args
2011-04-06 19:59:45moyixsetrecipients: + moyix, r.david.murray, gruszczy
2011-04-06 19:59:45moyixsetmessageid: <1302119985.22.0.438422483615.issue11767@psf.upfronthosting.co.za>
2011-04-06 19:59:44moyixlinkissue11767 messages
2011-04-06 19:59:44moyixcreate