[issue24658] open().write() fails on 2 GB+ data (OS X)
Ronald Oussoren
report at bugs.python.org
Mon Jul 20 15:05:20 CEST 2015
Ronald Oussoren added the comment:
The patch limits os.write to writing at most INT_MAX bytes on OSX. Buffered I/O using open("/some/file", "wb") should still write all data (at least according to the limited tests I've done so far).
The same limitation is already present on Windows.
And as I wrote before: os.write may accoding to the manpage for write(2) already write less bytes than requested.
I'm -1 on using an explicit exception or printing a warning about this.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24658>
_______________________________________
More information about the Python-bugs-list
mailing list