Author vstinner
Recipients benhoyt, gvanrossum, martin.panter, serhiy.storchaka, vstinner
Date 2016-02-08.22:14:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2016-02-08 22:14:22vstinnersetrecipients: + vstinner, gvanrossum, benhoyt, martin.panter, serhiy.storchaka
2016-02-08 22:14:22vstinnersetmessageid: <>
2016-02-08 22:14:22vstinnerlinkissue25994 messages
2016-02-08 22:14:22vstinnercreate