[issue31651] io.FileIO cannot write more than 2GB (-4096) bytes??? must be documented (if not fixed)

Yaroslav Halchenko report at bugs.python.org
Sun Oct 1 01:16:59 EDT 2017


Yaroslav Halchenko <yarikoptic at gmail.com> added the comment:

Thank you for the follow-ups!  

Wouldn't it be better if Python documentation said exactly that 

On Linux, write() (and similar system calls) will transfer at most 0x7ffff000 (2,147,479,552) bytes, returning the number of bytes 
actually transferred.  (This is true on both 32-bit and 64-bit 
systems.)

Also, it might be nice to add a note on top, that this module is for 'low level' IO interface, and that it is recommended to use regular file type for typical file operations (not io.FileIO) to avoid necessity of dealing limitations such as the one mentioned.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31651>
_______________________________________


More information about the Python-bugs-list mailing list