This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients serhiy.storchaka, vstinner
Date 2014-07-07.13:37:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Content 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 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:54vstinnersetrecipients: + vstinner, serhiy.storchaka
2014-07-07 13:37:54vstinnersetmessageid: <>
2014-07-07 13:37:54vstinnerlinkissue21932 messages
2014-07-07 13:37:54vstinnercreate