code: def sendeof(self):
          '''This sends an EOF to the child. This sends a character which causes
          the pending parent output buffer to be sent to the waiting child
          program without waiting for end-of-line. If it is the first character
          of the line, the read() in the user program returns 0, which signifies
          end-of-file. This means to work as expected a sendeof() has to be
          called at the beginning of a line. This method does not send a newline.
          It is the responsibility of the caller to ensure the eof is sent at the
          beginning of a line. '''
  
          n, byte = self.ptyproc.sendeof()
          self._log_control(bytef sendeof(self):
          '''This sends an EOF to the child. This sends a character which causes
          the pending parent output buffer to be sent to the waiting child
          program without waiting for end-of-line. If it is the first character
          of the line, the read() in the user program returns 0, which signifies
          end-of-file. This means to work as expected a sendeof() has to be
          called at the beginning of a line. This method does not send a newline.
          It is the responsibility of the caller to ensure the eof is sent at the
          beginning of a line. '''
  
          n, byte = self.ptyproc.sendeof()
          self._log_control(byte)
docs: This sends an EOF to the child. This sends a character which causes
          the pending parent output buffer to be sent to the waiting child
          program without waiting for end-of-line. If it is the first character
          of the line, the read() in the user program returns 0, which signifies
          end-of-file. This means to work as expected a sendeof() has to be
          called at the beginning of a line. This method does not send a newline.
          It is the responsibility of the caller to ensure the eof is sent at the
          beginning of a line.