Message238514
| 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:30 | vstinner | set | recipients:
+ vstinner |
| 2015年03月19日 13:33:30 | vstinner | set | messageid: <1426772010.62.0.268490898603.issue23708@psf.upfronthosting.co.za> |
| 2015年03月19日 13:33:30 | vstinner | link | issue23708 messages |
| 2015年03月19日 13:33:30 | vstinner | create |
|