Home
last modified time | relevance | path

Searched refs:readinto (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_file.py51 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)
Dtest_memoryio.py421 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)
Dtest_fileio.py72 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)
Dtest_file2k.py64 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)
Dtest_io.py98 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 …]
Dtest_memoryview.py245 self.assertRaises(TypeError, i.readinto, m)
Dtest_str.py443 self.assertRaises(TypeError, sys.stdin.readinto, b"")
Dtest_bytes.py474 n = f.readinto(b)
/external/python/cpython2/Tools/freeze/
Dbkfile.py24 self.readinto = self.__file.readinto
/external/python/cpython2/Lib/
D_pyio.py561 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/
Dio.rst221 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`
Dgzip.rst31 of a file object, with the exception of the :meth:`readinto` and
/external/chromium-trace/catapult/third_party/pyserial/serial/
Dserialutil.py530 def readinto(self, b): member in SerialBase
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1039 :meth:`readinto`,
/external/python/cpython2/Misc/
DNEWS4281 - 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.
DHISTORY13418 f.readinto(buffer). A cool feature is that regular expression matching now