[issue24658] open().write() fails on 2 GB+ data (OS X)

Eric O. LEBIGOT report at bugs.python.org
Mon Jul 20 14:57:44 CEST 2015


Eric O. LEBIGOT added the comment:

Thank you for looking into this, Ronald.

What does your patch do, exactly? does it only limit the returned byte count, or does it really limit the size of the data written by truncating it?

In any case, it would be very useful to have a warning from the Python interpreter. If the data is truncated, I would even prefer an explicit exception (e.g. "data too big for this platform (>= 2 GB)"), along with an explicit mention of it in the documentation. What do you think?

----------

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


More information about the Python-bugs-list mailing list