New submission from STINNER Victor:

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.

----------
files: py_read_write.patch
keywords: patch
messages: 238514
nosy: haypo
priority: normal
severity: normal
status: open
title: PEP 475: Add _Py_read() and _Py_write() functions
versions: Python 3.5
Added file: http://bugs.python.org/file38557/py_read_write.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23708>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to