[New-bugs-announce] [issue23708] PEP 475: Add _Py_read() and _Py_write() functions

STINNER Victor report at bugs.python.org
Thu Mar 19 14:33:30 CET 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23708>
_______________________________________


More information about the New-bugs-announce mailing list