[issue26603] os.scandir: implement finalizer (for ResourceWarning)

2016-03-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26603] os.scandir: implement finalizer (for ResourceWarning)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b65d783cfe3b by Victor Stinner in branch 'default': Implement finalizer for os.scandir() iterator https://hg.python.org/cpython/rev/b65d783cfe3b -- nosy: +python-dev ___ Python tracker

[issue26603] os.scandir: implement finalizer (for ResourceWarning)

2016-03-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benhoyt ___ Python tracker ___ ___

[issue26603] os.scandir: implement finalizer (for ResourceWarning)

2016-03-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file42235/scandir_finalizer.patch ___ Python tracker

[issue26603] os.scandir: implement finalizer (for ResourceWarning)

2016-03-21 Thread STINNER Victor
New submission from STINNER Victor: Attached patch implements a finalizer for os.scandir() iterator type. The patch also calls the new PyErr_ResourceWarning() function to be able to display in the warning where the iterator was created (allocated) when tracemalloc is enabled. While it makes