Home
last modified time | relevance | path

Searched refs:filelike (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/wsgiref/
Dutil.py14 def __init__(self, filelike, blksize=8192): argument
15 self.filelike = filelike
17 if hasattr(filelike,'close'):
18 self.close = filelike.close
28 data = self.filelike.read(self.blksize)
37 data = self.filelike.read(self.blksize)
/third_party/python/Lib/test/
Dtest_print.py105 class filelike: class
116 f = filelike()
Dtest_wsgiref.py352 self.assertFalse(it.filelike.closed)
357 self.assertFalse(it.filelike.closed)
360 self.assertTrue(it.filelike.closed)
Dpickletester.py1495 filelike = StringIO()
1496 dis(s, out=filelike)
1497 got = filelike.getvalue()
/third_party/python/Doc/library/
Dwsgiref.rst151 .. class:: FileWrapper(filelike, blksize=8192)
156 optional *blksize* parameter will be repeatedly passed to the *filelike*
160 If *filelike* has a :meth:`close` method, the returned object will also have a
161 :meth:`close` method, and it will invoke the *filelike* object's :meth:`close`
170 filelike = StringIO("This is an example file-like object"*10)
171 wrapper = FileWrapper(filelike, blksize=5)