This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <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:22vstinnersetrecipients: + vstinner, gvanrossum, benhoyt, martin.panter, serhiy.storchaka
2016-02-08 22:14:22vstinnersetmessageid: <1454969662.37.0.459765772989.issue25994@psf.upfronthosting.co.za>
2016-02-08 22:14:22vstinnerlinkissue25994 messages
2016-02-08 22:14:22vstinnercreate