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

Eryk Sun report at bugs.python.org
Thu Jan 14 17:24:53 EST 2016


Eryk Sun added the comment:

> That behavior on Windows is quite counterintuitive.

It's counter-intuitive from a POSIX point of view, in which anonymous files are allowed. In contrast, Windows allows any existing reference to unset the delete disposition, so the name cannot be unlinked until all references are closed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26111>
_______________________________________


More information about the docs mailing list