[issue14243] NamedTemporaryFile unusable under Windows

Antoine Pitrou report at bugs.python.org
Sat Mar 10 16:17:31 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> OTOH, if the proposal is merely to change the way the file is opened
> on Windows so that it can be opened again without closing it first,
> that sounds fine.

That would be my proposal. It probably needs getting rid of O_TEMPORARY,
exposing CreateFile and _open_osfhandle, and using the FILE_SHARE_DELETE
open mode.

----------

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


More information about the Python-bugs-list mailing list