[docs] [issue26111] On Windows, os.scandir will keep a handle on the directory until the iterator is exhausted

Martin Panter report at bugs.python.org
Thu Jan 14 16:35:09 EST 2016

Martin Panter added the comment:

Remy, is this the same problem described in Issue 25994? There a close() method (like on generators) and/or context manager support is proposed for the scandir() iterator. Perhaps we can keep this issue open for adding a warning to the documentation, and the other issue can be for improving the API in 3.6.

assignee:  -> docs at python
components: +Documentation
dependencies: +File descriptor leaks in os.scandir()
nosy: +docs at python, martin.panter

Python tracker <report at bugs.python.org>

More information about the docs mailing list