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

Method completenames

Lib/cmd.py:257–259  ·  view source on GitHub ↗
(self, text, *ignored)

Source from the content-addressed store, hash-verified

255 return []
256
257 def completenames(self, text, *ignored):
258 dotext = 'do_'+text
259 return [a[3:] for a in self.get_names() if a.startswith(dotext)]
260
261 def complete(self, text, state):
262 """Return the next possible completion for 'text'.

Callers 1

complete_helpMethod · 0.95

Calls 2

get_namesMethod · 0.95
startswithMethod · 0.45

Tested by

no test coverage detected