/external/python/cpython3/Lib/test/ |
D | test_fileio.py | 82 n = f.readinto(ba) 92 n = f.readinto(m) 98 n = f.readinto(m) 108 n = f.readinto(a) 114 n = f.readinto(a) 120 n = f.readinto(a) 194 self.assertRaises(TypeError, f.readinto, "") 212 self.assertRaises(TypeError, self.f.readinto) 213 self.assertRaises(ValueError, self.f.readinto, bytearray(1)) 340 f.readinto(a)
|
D | test_file.py | 47 n = self.f.readinto(a) 56 self.assertRaises(TypeError, self.f.readinto, a) 91 self.assertRaises((OSError, TypeError), f.readinto, "") 271 f.readinto(buf) 306 f.readinto(buf)
|
D | test_httplib.py | 555 n = resp.readinto(b) 559 n = resp.readinto(b) 591 n = resp.readinto(b) 595 n = resp.readinto(b) 598 n = resp.readinto(b) 623 n = resp.readinto(b) 627 n = resp.readinto(b) 630 n = resp.readinto(b) 696 if resp.readinto(b) != 0: 845 n = resp.readinto(b) [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 | 108 def readinto(self, buf): member in MockRawIOWithoutRead 169 def readinto(self, buf): member in MisbehavedRawIO 170 super().readinto(buf) 222 def readinto(self, b): member in MockFileIO 223 res = super().readinto(b) 341 self.assertEqual(f.readinto(data), 5) 344 self.assertEqual(f.readinto(data), 2) 350 self.assertEqual(f.readinto(byteslike(b"x")), 0) 354 self.assertEqual(f.readinto(byteslike()), 0) 1284 self.assertEqual(bufio.readinto(b), 2) [all …]
|
D | test_marshal.py | 313 def readinto(self, buf): member in BugsTestCase.test_bad_reader.BadReader 314 n = super().readinto(buf)
|
D | test_bz2.py | 73 test_size += fh.readinto(memoryview(BIG_TEXT)[test_size:]) 188 self.assertEqual(bz2f.readinto(b), n) 192 self.assertEqual(bz2f.readinto(b), n)
|
/external/python/cpython2/Lib/test/ |
D | test_file.py | 52 n = self.f.readinto(a) 61 self.assertRaises(TypeError, self.f.readinto, a) 96 self.assertRaises((IOError, TypeError), f.readinto, "") 277 f.readinto(buf) 311 f.readinto(buf)
|
D | test_memoryio.py | 422 self.assertEqual(memio.readinto(b), 5) 424 self.assertEqual(memio.readinto(b), 5) 426 self.assertEqual(memio.readinto(b), 0) 430 self.assertEqual(memio.readinto(b), 10) 434 self.assertEqual(memio.readinto(b), 0) 436 self.assertRaises(TypeError, memio.readinto, '') 440 memio.readinto(a) 443 self.assertRaises(ValueError, memio.readinto, b) 447 memio.readinto(b)
|
D | test_fileio.py | 72 n = self.f.readinto(a) 122 self.assertRaises(TypeError, f.readinto, "") 142 self.assertRaises(ValueError, self.f.readinto) # XXX should be TypeError? 143 self.assertRaises(ValueError, self.f.readinto, bytearray(1)) 270 f.readinto(a)
|
D | test_file2k.py | 64 n = self.f.readinto(a) 119 self.assertRaises(TypeError, f.readinto, "") 182 self.assertRaises(IOError, self.f.readinto, bytearray(len(data))) 389 f.readinto(buf) 422 f.readinto(buf) 617 self.f.readinto(a)
|
D | test_io.py | 98 def readinto(self, buf): member in MockRawIOWithoutRead 159 def readinto(self, buf): member in MisbehavedRawIO 160 MockRawIO.readinto(self, buf) 196 def readinto(self, b): member in MockFileIO 197 res = super(MockFileIO, self).readinto(b) 295 self.assertEqual(f.readinto(data), 5) 298 self.assertEqual(f.readinto(data), 2) 304 self.assertEqual(f.readinto(byteslike(b"x")), 0) 308 self.assertEqual(f.readinto(byteslike()), 0) 690 self.assertEqual(stream.readinto(buffer), 5) [all …]
|
D | test_memoryview.py | 246 self.assertRaises(TypeError, i.readinto, m)
|
/external/python/cpython2/Tools/freeze/ |
D | bkfile.py | 24 self.readinto = self.__file.readinto
|
/external/python/cpython3/Lib/ |
D | bz2.py | 193 def readinto(self, b): member in BZ2File 200 return self._buffer.readinto(b)
|
D | _pyio.py | 582 n = self.readinto(b) 602 def readinto(self, b): member in RawIOBase 666 def readinto(self, b): member in BufferedIOBase 1136 n = self.raw.readinto(buf[written:]) 1306 def readinto(self, b): member in BufferedRWPair 1307 return self.reader.readinto(b) 1393 def readinto(self, b): member in BufferedRandom 1395 return BufferedReader.readinto(self, b) 1627 def readinto(self, b): member in FileIO
|
D | _compression.py | 66 def readinto(self, b): member in DecompressReader
|
/external/python/cpython3/Doc/library/ |
D | io.rst | 166 :meth:`~IOBase.readinto` and :meth:`~IOBase.readline`. 206 :class:`RawIOBase` :class:`IOBase` ``readinto`` and Inherited :class:`IOBase` … 208 …` :class:`IOBase` ``detach``, ``read``, Inherited :class:`IOBase` methods, ``readinto``, 229 Even though :class:`IOBase` does not declare :meth:`read`, :meth:`readinto`, 238 :meth:`~RawIOBase.readinto`, a writable object such as :class:`bytearray` 397 :meth:`readinto`. 404 .. method:: readinto(b) 430 :meth:`readinto` and :meth:`write` will try (respectively) to read as much 440 implementation that defers to :meth:`readinto`. 487 :meth:`~RawIOBase.readinto`) method. This can be useful if you are [all …]
|
/external/python/cpython2/Lib/ |
D | _pyio.py | 561 n = self.readinto(b) 581 def readinto(self, b): member in RawIOBase 642 def readinto(self, b): member in BufferedIOBase 1197 def readinto(self, b): member in BufferedRWPair 1198 return self.reader.readinto(b) 1284 def readinto(self, b): member in BufferedRandom 1286 return BufferedReader.readinto(self, b)
|
/external/python/cpython3/Lib/http/ |
D | client.py | 447 n = self.readinto(b) 468 def readinto(self, b): member in HTTPResponse 491 n = self.fp.readinto(b) 624 n = self.fp.readinto(temp_mvb) 626 n = self.fp.readinto(mvb)
|
/external/python/cpython3/Modules/_io/ |
D | winconsoleio.c | 648 readinto(winconsoleio *self, char *buf, Py_ssize_t len) in readinto() function 751 Py_ssize_t len = readinto(self, buffer->buf, buffer->len); in _io__WindowsConsoleIO_readinto_impl() 933 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl()
|
D | _iomodule.c | 749 ADD_INTERNED(readinto) in PyInit__io()
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.1.rst | 131 Fix BytesIO.readinto() after seeking into a position after the end of the
|
/external/python/cpython2/Doc/library/ |
D | io.rst | 221 Even though :class:`IOBase` does not declare :meth:`read`, :meth:`readinto`, 230 In some cases, such as :meth:`~RawIOBase.readinto`, a writable object 389 .. method:: readinto(b) 417 :meth:`readinto` and :meth:`write` will try (respectively) to read as much 427 implementation that defers to :meth:`readinto`. 477 .. method:: readinto(b) 527 The :meth:`read` (when called with a positive argument), :meth:`readinto` 685 and line based interface to stream I/O. There is no :meth:`readinto`
|
D | gzip.rst | 31 of a file object, with the exception of the :meth:`readinto` and
|