/third_party/python/Lib/test/ |
D | test_fileio.py | 84 n = f.readinto(ba) 94 n = f.readinto(m) 100 n = f.readinto(m) 110 n = f.readinto(a) 116 n = f.readinto(a) 122 n = f.readinto(a) 196 self.assertRaises(TypeError, f.readinto, "") 214 self.assertRaises(TypeError, self.f.readinto) 215 self.assertRaises(ValueError, self.f.readinto, bytearray(1)) 342 f.readinto(a)
|
D | test_file.py | 50 n = self.f.readinto(a) 59 self.assertRaises(TypeError, self.f.readinto, a) 94 self.assertRaises((OSError, TypeError), f.readinto, "") 301 f.readinto(buf) 336 f.readinto(buf)
|
D | test_httplib.py | 590 n = resp.readinto(b) 594 n = resp.readinto(b) 621 n = resp.readinto(b) 653 n = resp.readinto(b) 657 n = resp.readinto(b) 660 n = resp.readinto(b) 685 n = resp.readinto(b) 689 n = resp.readinto(b) 692 n = resp.readinto(b) 758 if resp.readinto(b) != 0: [all …]
|
D | test_memoryio.py | 476 self.assertEqual(memio.readinto(b), 5) 478 self.assertEqual(memio.readinto(b), 5) 480 self.assertEqual(memio.readinto(b), 0) 484 self.assertEqual(memio.readinto(b), 10) 488 self.assertEqual(memio.readinto(b), 0) 490 self.assertRaises(TypeError, memio.readinto, '') 494 memio.readinto(a) 497 self.assertRaises(ValueError, memio.readinto, b) 501 memio.readinto(b)
|
D | test_io.py | 123 def readinto(self, buf): member in MockRawIOWithoutRead 184 def readinto(self, buf): member in MisbehavedRawIO 185 super().readinto(buf) 237 def readinto(self, b): member in MockFileIO 238 res = super().readinto(b) 360 self.assertEqual(f.readinto(data), 5) 363 self.assertEqual(f.readinto(data), 2) 369 self.assertEqual(f.readinto(byteslike(b"x")), 0) 373 self.assertEqual(f.readinto(byteslike()), 0) 754 self.assertRaises(ValueError, file.readinto, bytearray(1)) [all …]
|
D | test_marshal.py | 307 def readinto(self, buf): member in BugsTestCase.test_bad_reader.BadReader 308 n = super().readinto(buf)
|
D | test_bz2.py | 77 test_size += fh.readinto(memoryview(BIG_TEXT)[test_size:]) 195 self.assertEqual(bz2f.readinto(b), n) 199 self.assertEqual(bz2f.readinto(b), n)
|
D | test_memoryview.py | 312 self.assertRaises(TypeError, i.readinto, m)
|
/third_party/python/Lib/ |
D | bz2.py | 178 def readinto(self, b): member in BZ2File 184 return self._buffer.readinto(b)
|
D | _pyio.py | 657 n = self.readinto(b) 677 def readinto(self, b): member in RawIOBase 741 def readinto(self, b): member in BufferedIOBase 1218 n = self.raw.readinto(buf[written:]) 1388 def readinto(self, b): member in BufferedRWPair 1389 return self.reader.readinto(b) 1475 def readinto(self, b): member in BufferedRandom 1477 return BufferedReader.readinto(self, b) 1713 def readinto(self, b): member in FileIO
|
D | _compression.py | 66 def readinto(self, b): member in DecompressReader
|
D | pickle.py | 270 def readinto(self, buf): member in _Unframer 272 n = self.current_frame.readinto(buf) 1199 self.readinto = self._unframer.readinto 1392 self.readinto(b)
|
D | socket.py | 691 def readinto(self, b): member in SocketIO
|
D | shutil.py | 174 fsrc_readinto = fsrc.readinto
|
/third_party/python/Modules/_io/ |
D | winconsoleio.c | 632 readinto(winconsoleio *self, char *buf, Py_ssize_t len) in readinto() function 739 Py_ssize_t len = readinto(self, buffer->buf, buffer->len); in _io__WindowsConsoleIO_readinto_impl() 926 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl()
|
D | _iomodule.c | 799 ADD_INTERNED(readinto) in PyInit__io()
|
/third_party/python/Doc/library/ |
D | io.rst | 254 :meth:`~IOBase.readinto` and :meth:`~IOBase.readline`. 294 :class:`RawIOBase` :class:`IOBase` ``readinto`` and Inherited :class:`IOBase` … 296 …` :class:`IOBase` ``detach``, ``read``, Inherited :class:`IOBase` methods, ``readinto``, 487 :meth:`readinto`. 494 .. method:: readinto(b) 521 :meth:`readinto` and :meth:`write` will try (respectively) to read as much 531 implementation that defers to :meth:`readinto`. 578 :meth:`~RawIOBase.readinto`) method. This can be useful if you are 585 .. method:: readinto(b) 602 :meth:`~RawIOBase.readinto`) method. Return the number of bytes read. [all …]
|
D | bz2.rst | 114 :meth:`read1` and :meth:`readinto` methods were added.
|
D | http.client.rst | 464 .. method:: HTTPResponse.readinto(b)
|
/third_party/python/Lib/http/ |
D | client.py | 489 def readinto(self, b): member in HTTPResponse 512 n = self.fp.readinto(b) 638 n = self.fp.readinto(b)
|
/third_party/python/Modules/ |
D | _pickle.c | 679 PyObject *readinto; /* readinto() method of the input stream. */ member 1385 if (!self->readinto) { in _Unpickler_ReadInto() 1418 PyObject *read_size_obj = _Pickle_FastCall(self->readinto, buf_obj); in _Unpickler_ReadInto() 1605 self->readinto = NULL; in _Unpickler_New() 1638 _Py_IDENTIFIER(readinto); in _Unpickler_SetInputStream() 1645 if (_PyObject_LookupAttrId(file, &PyId_readinto, &self->readinto) < 0) { in _Unpickler_SetInputStream() 1656 Py_CLEAR(self->readinto); in _Unpickler_SetInputStream() 7151 Py_XDECREF(self->readinto); in Unpickler_dealloc() 7175 Py_VISIT(self->readinto); in Unpickler_traverse() 7188 Py_CLEAR(self->readinto); in Unpickler_clear()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a4.rst | 114 Fix segfault in ``readinto()`` method on closed BufferedReader. 291 file-like object that doesn't expose a readinto() method.
|
/third_party/python/Lib/asyncio/ |
D | base_events.py | 899 read = await self.run_in_executor(None, file.readinto, view) 1182 read = await self.run_in_executor(None, file.readinto, view)
|
/third_party/python/Lib/multiprocessing/ |
D | connection.py | 242 result.readinto(m[offset // itemsize :
|
/third_party/python/Python/ |
D | marshal.c | 667 _Py_IDENTIFIER(readinto); in r_string()
|