[docs] [issue26111] On Windows, os.scandir will keep a handle on the directory until the iterator is exhausted
Remy Roy
report at bugs.python.org
Thu Jan 14 16:46:39 EST 2016
Remy Roy added the comment:
I believe Eryk's explanation on how a file in Windows doesn't actually get unlinked until all handles and kernel pointer references are closed is spot on about the problem I had.
I had a complex example that could probably have been simplified to what Eryk posted.
That behavior on Windows is quite counterintuitive. I'm not sure about what can be done to help it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26111>
_______________________________________
More information about the docs
mailing list