/external/python/cpython2/Lib/test/ |
D | test_file.py | 51 n = self.f.readinto(a) 60 self.assertRaises(TypeError, self.f.readinto, a) 95 self.assertRaises((IOError, TypeError), f.readinto, "") 276 f.readinto(buf) 310 f.readinto(buf)
|
D | test_memoryio.py | 421 self.assertEqual(memio.readinto(b), 5) 423 self.assertEqual(memio.readinto(b), 5) 425 self.assertEqual(memio.readinto(b), 0) 429 self.assertEqual(memio.readinto(b), 10) 433 self.assertEqual(memio.readinto(b), 0) 435 self.assertRaises(TypeError, memio.readinto, '') 439 memio.readinto(a) 442 self.assertRaises(ValueError, memio.readinto, b) 446 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) 674 self.assertEqual(stream.readinto(buffer), 5) [all …]
|
D | test_memoryview.py | 245 self.assertRaises(TypeError, i.readinto, m)
|
D | test_str.py | 443 self.assertRaises(TypeError, sys.stdin.readinto, b"")
|
D | test_bytes.py | 474 n = f.readinto(b)
|
/external/python/cpython2/Tools/freeze/ |
D | bkfile.py | 24 self.readinto = self.__file.readinto
|
/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/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
|
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
D | serialutil.py | 530 def readinto(self, b): member in SerialBase
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1039 :meth:`readinto`,
|
/external/python/cpython2/Misc/ |
D | NEWS | 4281 - Issue #9611, #9015: FileIO.read(), FileIO.readinto(), FileIO.write() and 5423 - Issue #10467: Fix BytesIO.readinto() after seeking into a position after the 5620 handles non-blocking readinto() returning None correctly.
|
D | HISTORY | 13418 f.readinto(buffer). A cool feature is that regular expression matching now
|