Author haypo
Recipients benhoyt, gvanrossum, haypo, martin.panter, serhiy.storchaka
Date 2016-02-08.22:14:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454969662.37.0.459765772989.issue25994@psf.upfronthosting.co.za>
In-reply-to
Content
Context manager protocol, close() method: it looks more and more like a file. In this case, I suggest to emit a ResourceWarning in the destructor if it's not closed explicitly. It mean that the scandir() must always be used with "with" or at least that close() is always closed.

We probably need to update the code to be more explicitly on that.
History
Date User Action Args
2016-02-08 22:14:22hayposetrecipients: + haypo, gvanrossum, benhoyt, martin.panter, serhiy.storchaka
2016-02-08 22:14:22hayposetmessageid: <1454969662.37.0.459765772989.issue25994@psf.upfronthosting.co.za>
2016-02-08 22:14:22haypolinkissue25994 messages
2016-02-08 22:14:22haypocreate