MCPcopy Index your code
hub / github.com/python/cpython / _get_input

Method _get_input

Lib/pdb.py:2874–2881  ·  view source on GitHub ↗
(self, prompt, state)

Source from the content-addressed store, hash-verified

2872 self._send(message=str(msg), type="error")
2873
2874 def _get_input(self, prompt, state) -> str:
2875 # Before displaying a (Pdb) prompt, send the list of PDB commands
2876 # unless we've already sent an up-to-date list.
2877 if state == "pdb" and not self._command_name_cache:
2878 self._command_name_cache = self.completenames("", "", 0, 0)
2879 self._send(command_list=self._command_name_cache)
2880 self._send(prompt=prompt, state=state)
2881 return self._read_reply()
2882
2883 def _read_reply(self):
2884 # Loop until we get a 'reply' or 'signal' from the client,

Callers 2

cmdloopMethod · 0.95

Calls 3

_sendMethod · 0.95
_read_replyMethod · 0.95
completenamesMethod · 0.45

Tested by

no test coverage detected