[issue23668] Support os.ftruncate on Windows

Steve Dower report at bugs.python.org
Fri Apr 3 17:50:09 CEST 2015


Steve Dower added the comment:

I responded to Victor's suggestion about _Py_open instead of _open, but on rereading I see that it also handles EINTR. 

AFAICT (from https://msdn.microsoft.com/en-us/library/5814770t.aspx, mainly), Windows isn't ever going to return EINTR from the CRT. I don't especially want to have to modify _Py_open to take another parameter to suppress creating a new file, but if someone else does then I'm happy to use it.

----------

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


More information about the Python-bugs-list mailing list