[issue15723] Python breaks OS' append guarantee on file writes

Poul-Henning Kamp report at bugs.python.org
Sat Aug 18 22:50:31 CEST 2012


Poul-Henning Kamp added the comment:

POLA = Principle Of Least Astonishment

We use that a lot in architectural decision in FreeBSD :-)

As I said: You deal with this as you see fit. If all python2 gets is a doc- or errata-notice, that's perfectly fine with me.

I interpret "The writev() function shall be equivalent to write(), except as described below." as writev() giving the same atomic append guarantee.

In FreeBSD, write() is implemented using writev() and I expect that is the obvious and thus common way it is done.

(You seem to be right with respect to the 1024: That is indeed still the BUFSIZ on FreeBSD, I'll work on getting that changed.)

----------

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


More information about the Python-bugs-list mailing list