PEW's Corner <pewscor...@gmail.com> added the comment:

Great analysis, Jeffrey. Does the kernel position actually move to the end of 
the file on the f.write() in step 10, or on the flush in step 14? If it's the 
latter, then f.write() should probably call lseek() to set both the kernel 
position and internal position to the end of the file before the write. This 
would have the added benefit of making the Python append behavior independent 
of the kernel behavior (as some kernels apparently handle appending 
differently).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36411>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to