class_docstr: Wrapper for a REPL.
  
  :param cmd_or_spawn: This can either be an instance of :class:`pexpect.spawn`
    in which a REPL has already been started, or a str command to start a new
    REPL process.
  :param str orig_prompt: The prompt to expect at first.
  :param str prompt_change: A command to change the prompt to something more
    unique. If this is ``None``, the prompt will not be changed. This will
    be formatted with the new and continuation prompts as positional
    parameters, so you can use ``{}`` style formatting to insert them into
    the command.
  :param str new_prompt: The more unique prompt to expect after the change.
  :param str extra_init_cmd: Commands to do extra initialisation, such as
    disabling pagers.
class_docstr_tok: ["Wrapper","for","a","REPL",".",":","param","cmd_or_spawn",":","This","can","either","be","an","instance","of",":","class",":","`","pexpect.spawn","`","in","which","a","REPL","has","already","been","started",",","or","a","str","command","to","start","a","new","REPL","process",".",":","param","str","orig_prompt",":","The","prompt","to","expect","at","first",".",":","param","str","prompt_change",":","A","command","to","change","the","prompt","to","something","more","unique",".","If","this","is","``","None","``",",","the","prompt","will","not","be","changed",".","This","will","be","formatted","with","the","new","and","continuation","prompts","as","positional","parameters",",","so","you","can","use","``","{","}","``","style","formatting","to","insert","them","into","the","command",".",":","param","str","new_prompt",":","The","more","unique","prompt","to","expect","after","the","change",".",":","param","str","extra_init_cmd",":","Commands","to","do","extra","initialisation",",","such","as","disabling","pagers","."]
code: def _expect_prompt(self, timeout=-1, async_=False):
      return self.child.expect_exact(
          [self.prompt, self.continuation_prompt],
          timeout=timeout,
          async_=async_,
      )
  
file_path: catboost/contrib/python/pexpect/py2/pexpect/replwrap.py
imports: import os.path
  import signal
  import sys
  import pexpect
label_desc: Use image node_id 3 for calling the REPLWrapper obj's underlying member method code with example usage: obj._expect_prompt(timeout, async_) and returns: self