diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-05-28 01:07:08 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-05-28 01:07:08 (GMT) |
commit | c249221dfda0bf05c6fab37fab9c0eb4f23c870c (patch) | |
tree | a922dedc5f1a61c5b242d08f9b00f6ba587e9452 /Modules/_io/fileio.c | |
parent | 0472217d433634cb7180a37045744ad4a570d500 (diff) | |
parent | 6bb91f3b6e51352f91bcf785d3f6fe160ed2cd85 (diff) | |
download | cpython-c249221dfda0bf05c6fab37fab9c0eb4f23c870c.zip cpython-c249221dfda0bf05c6fab37fab9c0eb4f23c870c.tar.gz cpython-c249221dfda0bf05c6fab37fab9c0eb4f23c870c.tar.bz2 |
Issue #20699: Merge io bytes-like fixes from 3.5
Diffstat (limited to 'Modules/_io/fileio.c')
-rw-r--r-- | Modules/_io/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index a02a9c1..fe6bc41 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -835,7 +835,7 @@ _io.FileIO.write b: Py_buffer / -Write bytes b to file, return number written. +Write buffer b to file, return number of bytes written. Only makes one system call, so not all of the data may be written. The number of bytes actually written is returned. In non-blocking mode, @@ -844,7 +844,7 @@ returns None if the write would block. static PyObject * _io_FileIO_write_impl(fileio *self, Py_buffer *b) -/*[clinic end generated code: output=b4059db3d363a2f7 input=ffbd8834f447ac31]*/ +/*[clinic end generated code: output=b4059db3d363a2f7 input=6e7908b36f0ce74f]*/ { Py_ssize_t n; int err; |