[issue23668] Support os.[f]truncate on Windows

Steve Dower report at bugs.python.org
Sat Mar 21 04:26:48 CET 2015


Steve Dower added the comment:

Updated the patch, since there's been a lot of checkins.

I also removed the pyconfig.h changes and updated the #ifdef in posixmodule.c to enable truncate/ftruncate and define PATH_HAVE_FTRUNCATE.

And I know in the last review I said I'd switch to _Py_wopen(), but if I do that there's no way to avoid passing _O_CREAT, so I opted to stick with _wopen() and pass _O_NOINHERIT instead.

Hopefully Reitveld handles this patch file. I'm sure I'm not doing anything differently from normal...

----------
Added file: http://bugs.python.org/file38614/23668_3.patch

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


More information about the Python-bugs-list mailing list