/external/python/cpython3/Lib/test/ |
D | multibytecodec_support.py | 175 for sizehint in [None] + list(range(1, 33)) + \ 181 if sizehint is not None: 182 data = istream.read(sizehint) 195 for sizehint in [None, -1] + list(range(1, 33)) + \ 201 data = istream.read(sizehint) 233 for sizehint in [None, -1] + list(range(1, 33)) + \ 239 data = func(sizehint) 253 for sizehint in [None] + list(range(1, 33)) + \ 259 if sizehint is not None: 260 data = func(sizehint)
|
D | test_codecs.py | 1121 for sizehint in [None] + list(range(1, 11)) + \ 1126 if sizehint is not None: 1127 data = istream.read(sizehint) 1143 for sizehint in [None] + list(range(1, 11)) + \ 1148 if sizehint is not None: 1149 data = istream.read(sizehint)
|
/external/python/cpython2/Lib/test/ |
D | test_multibytecodec_support.py | 161 for sizehint in [None] + range(1, 33) + \ 167 if sizehint is not None: 168 data = istream.read(sizehint) 181 for sizehint in [None, -1] + range(1, 33) + \ 187 data = istream.read(sizehint) 219 for sizehint in [None, -1] + range(1, 33) + \ 225 data = func(sizehint) 239 for sizehint in [None] + range(1, 33) + \ 245 if sizehint is not None: 246 data = func(sizehint)
|
D | test_codecs.py | 842 for sizehint in [None] + range(1, 11) + \ 847 if sizehint is not None: 848 data = istream.read(sizehint) 864 for sizehint in [None] + range(1, 11) + \ 869 if sizehint is not None: 870 data = istream.read(sizehint)
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 1259 const char *method, Py_ssize_t sizehint) in mbstreamreader_iread() argument 1265 if (sizehint == 0) in mbstreamreader_iread() 1275 if (sizehint < 0) in mbstreamreader_iread() 1280 method, "i", sizehint); in mbstreamreader_iread() 1325 if (endoffile || sizehint < 0) { in mbstreamreader_iread() 1341 if (sizehint < 0 || buf.writer.pos != 0 || rsize == 0) in mbstreamreader_iread() 1344 sizehint = 1; /* read 1 more byte and retry */ in mbstreamreader_iread() 1433 Py_ssize_t sizehint; in _multibytecodec_MultibyteStreamReader_readlines_impl() local 1436 sizehint = -1; in _multibytecodec_MultibyteStreamReader_readlines_impl() 1438 sizehint = PyLong_AsSsize_t(sizehintobj); in _multibytecodec_MultibyteStreamReader_readlines_impl() [all …]
|
/external/python/cpython2/Modules/ |
D | bz2module.c | 601 int sizehint = -1; in BZ2File_readline() local 603 if (!PyArg_ParseTuple(args, "|i:readline", &sizehint)) in BZ2File_readline() 627 if (sizehint == 0) in BZ2File_readline() 630 ret = Util_GetLine(self, (sizehint < 0) ? 0 : sizehint); in BZ2File_readline() 649 long sizehint = 0; in BZ2File_readlines() local 664 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint)) in BZ2File_readlines() 702 sizehint = 0; in BZ2File_readlines() 759 if (sizehint > 0) in BZ2File_readlines() 760 if (totalread >= (size_t)sizehint) in BZ2File_readlines() 763 sizehint = 0; in BZ2File_readlines() [all …]
|
D | selectmodule.c | 759 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) in newPyEpoll_Object() argument 763 if (sizehint == -1) { in newPyEpoll_Object() 764 sizehint = FD_SETSIZE-1; in newPyEpoll_Object() 766 else if (sizehint < 1) { in newPyEpoll_Object() 769 sizehint); in newPyEpoll_Object() 780 self->epfd = epoll_create(sizehint); in newPyEpoll_Object() 798 int sizehint = -1; in pyepoll_new() local 802 &sizehint)) in pyepoll_new() 805 return newPyEpoll_Object(type, sizehint, -1); in pyepoll_new()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 1238 const char *method, Py_ssize_t sizehint) in mbstreamreader_iread() argument 1244 if (sizehint == 0) in mbstreamreader_iread() 1253 if (sizehint < 0) in mbstreamreader_iread() 1258 (char *)method, "i", sizehint); in mbstreamreader_iread() 1302 if (endoffile || sizehint < 0) { in mbstreamreader_iread() 1320 if (sizehint < 0 || finalsize != 0 || rsize == 0) in mbstreamreader_iread() 1323 sizehint = 1; /* read 1 more byte and retry */ in mbstreamreader_iread() 1387 Py_ssize_t sizehint; in mbstreamreader_readlines() local 1393 sizehint = -1; in mbstreamreader_readlines() 1395 sizehint = PyInt_AsSsize_t(sizehintobj); in mbstreamreader_readlines() [all …]
|
/external/python/cpython2/Lib/ |
D | codecs.py | 591 def readlines(self, sizehint=None, keepends=True): argument 692 def readlines(self, sizehint=None): argument 694 return self.reader.readlines(sizehint) 809 def readlines(self, sizehint=None): argument
|
D | socket.py | 515 def readlines(self, sizehint=0): argument 524 if sizehint and total >= sizehint:
|
D | StringIO.py | 168 def readlines(self, sizehint = 0): argument 182 if 0 < sizehint <= total:
|
D | mailbox.py | 1889 def readlines(self, sizehint=None): argument 1894 if sizehint is not None: 1895 sizehint -= len(line) 1896 if sizehint <= 0:
|
/external/python/cpython3/Lib/ |
D | codecs.py | 603 def readlines(self, sizehint=None, keepends=True): argument 704 def readlines(self, sizehint=None): argument 706 return self.reader.readlines(sizehint) 815 def readlines(self, sizehint=None): argument
|
D | mailbox.py | 1943 def readlines(self, sizehint=None): argument 1948 if sizehint is not None: 1949 sizehint -= len(line) 1950 if sizehint <= 0:
|
/external/python/cpython3/Modules/ |
D | selectmodule.c | 1255 newPyEpoll_Object(PyTypeObject *type, int sizehint, int flags, SOCKET fd) in newPyEpoll_Object() argument 1272 self->epfd = epoll_create(sizehint); in newPyEpoll_Object() 1298 int flags = 0, sizehint = FD_SETSIZE - 1; in pyepoll_new() local 1302 &sizehint, &flags)) in pyepoll_new() 1304 if (sizehint < 0) { in pyepoll_new() 1309 return newPyEpoll_Object(type, sizehint, flags, -1); in pyepoll_new()
|
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
D | serialutil.py | 179 def readlines(self, sizehint=None, eol=LF): argument 196 def xreadlines(self, sizehint=None): argument
|
/external/python/cpython2/Objects/ |
D | fileobject.c | 1662 long sizehint = 0; in file_readlines() local 1685 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint)) in file_readlines() 1701 sizehint = 0; in file_readlines() 1762 if (sizehint > 0) in file_readlines() 1763 if (totalread >= (size_t)sizehint) in file_readlines() 1771 if (sizehint > 0) { in file_readlines()
|
/external/syslinux/com32/lua/src/ |
D | lauxlib.h | 201 int sizehint);
|
D | lauxlib.c | 813 int sizehint) { in luaL_pushmodule() argument 820 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule()
|
/external/python/cpython3/Doc/library/ |
D | select.rst | 56 .. function:: epoll(sizehint=-1, flags=0) 60 events. *sizehint* and *flags* are deprecated and completely ignored.
|
D | codecs.rst | 770 .. method:: readlines([sizehint[, keepends]]) 778 *sizehint*, if given, is passed as the *size* argument to the stream's
|
/external/python/cpython2/Doc/library/ |
D | select.rst | 27 .. function:: epoll([sizehint=-1])
|
D | codecs.rst | 692 .. method:: readlines([sizehint[, keepends]]) 700 *sizehint*, if given, is passed as the *size* argument to the stream's
|
D | stdtypes.rst | 2551 .. method:: file.readlines([sizehint]) 2554 thus read. If the optional *sizehint* argument is present, instead of 2555 reading up to EOF, whole lines totalling approximately *sizehint* bytes 2557 implementing a file-like interface may choose to ignore *sizehint* if it
|
/external/autotest/client/common_lib/ |
D | pexpect.py | 910 def readlines (self, sizehint = -1): # File-like object. argument
|