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

Method _complete_any

Lib/pdb.py:2929–2942  ·  view source on GitHub ↗
(self, text, line, begidx, endidx)

Source from the content-addressed store, hash-verified

2927 self.error(f"Ignoring invalid message from client: {msg}")
2928
2929 def _complete_any(self, text, line, begidx, endidx):
2930 # If we're in 'interact' mode, we need to use the default completer
2931 if self._interact_state:
2932 compfunc = self.completedefault
2933 else:
2934 if begidx == 0:
2935 return self.completenames(text, line, begidx, endidx)
2936
2937 cmd = self.parseline(line)[0]
2938 if cmd:
2939 compfunc = getattr(self, "complete_" + cmd, self.completedefault)
2940 else:
2941 compfunc = self.completedefault
2942 return compfunc(text, line, begidx, endidx)
2943
2944 def cmdloop(self, intro=None):
2945 self.preloop()

Callers 1

_read_replyMethod · 0.95

Calls 2

parselineMethod · 0.80
completenamesMethod · 0.45

Tested by

no test coverage detected