[issue1330] Fix truncate on Windows, this time for real

Christian Heimes report at bugs.python.org
Fri Oct 26 06:44:55 CEST 2007


Christian Heimes added the comment:

> While I like fixing the position restore in _fileio.c, I also liked
> Amaury's flush() call in _BufferedIOMixin.  Perhaps you can keep that
> part (while losing the position restore)?

Good point. We have to call flush() in _BufferedIOMixin as you said. I
checked if I could add a flush call to _fileio but it makes no sense. We
are working on file descriptors which means we don't have to use
fflush() and FileIO's flush() is a NOOP.

Added file: http://bugs.python.org/file8615/py3k_win_io2.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1330>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py3k_win_io2.patch
Type: text/x-patch
Size: 2183 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071026/aac521bc/attachment.bin 


More information about the Python-bugs-list mailing list