Message222462
os.read() currently uses the int type for the size parameter, whereas the C function uses a C size_t parameter:
ssize_t read(int fd, void *buf, size_t count);
The Python function must use the Py_ssize_t type, but truncate to INT_MAX on Windows, as done in FileIO.read(). It would help to implement FileIO in pure Python: issue #21859.
I don't think that this enhancement should be backported to Python 2.7 nor Python 3.4. |
|
Date |
User |
Action |
Args |
2014-07-07 13:37:54 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
2014-07-07 13:37:54 | vstinner | set | messageid: <1404740274.81.0.177768774974.issue21932@psf.upfronthosting.co.za> |
2014-07-07 13:37:54 | vstinner | link | issue21932 messages |
2014-07-07 13:37:54 | vstinner | create | |
|