Home | History | Annotate | Download | only in pexpect

Lines Matching defs:read

133     """Raised when EOF is read from a child.
139 """Raised when a read time exceeds the timeout. """
143 ## This is different than a read TIMEOUT because the child process may
318 The maxread attribute sets the read buffer size. This is maximum number
319 of bytes that Pexpect will try to read from a TTY at one time. Setting
322 output are read back from the child. This feature is useful in
329 imcomming buffer each time new data is read from the child. But this is
389 If you need more detail you can also read the self.status member which
422 # max bytes to read at one time into buffer
424 # This is the read buffer. See maxread.
523 # or not is to try to read from the file descriptor. If you get
816 includes a timeout. If the read does not complete within the timeout
817 period then a TIMEOUT exception is raised. If the end of file is read
821 If timeout is None then the read may block indefinitely.
826 The timeout refers only to the amount of time to read at least one
832 This is a wrapper around os.read(). It uses select.select() to
842 # the child dies. In fact, you can still try to read
875 s = os.read(self.child_fd, size)
894 def read(self, size=-1):
896 """This reads at most "size" bytes from the file (less if the read hits
898 omitted, read all data until EOF is reached. The bytes are returned as
910 # I deliberately decided to couple read() to expect() so that
913 # worry about if I have to later modify read() or expect().
966 the lines thus read. The optional 'sizehint' argument is ignored. """
1049 of the line, the read() in the user program returns 0, which signifies
1141 not read any data from the child, so this will block forever if the
1144 technically still alive until its output is read by the parent. """
1171 non-blocking. If the child was terminated then this will read the
1336 'match' will be set. You can see all the data read before the match in
1339 occurred then 'before' will be set to all the data read so far and
1456 # Still have time left, so read more data
1593 return os.read(fd, 1000)
1751 # rescanning until we've read three more bytes.