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 vstinner
Date 2015-03-19.13:33:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426772010.62.0.268490898603.issue23708@psf.upfronthosting.co.za>
In-reply-to
Content
To factorize code handling EINTR, I propose add 2 new functions to fileutils.h: _Py_read() and _Py_write().

Attached patch adds these functions and use them in the os and _io modules.

The code of the functions is based on the code from the os and _io modules. The main change is that the functions now truncate code if greater than PY_SSIZE_T_MAX. Other changes are just refactoring.
History
Date User Action Args
2015-03-19 13:33:30vstinnersetrecipients: + vstinner
2015-03-19 13:33:30vstinnersetmessageid: <1426772010.62.0.268490898603.issue23708@psf.upfronthosting.co.za>
2015-03-19 13:33:30vstinnerlinkissue23708 messages
2015-03-19 13:33:30vstinnercreate