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

Method get_stem

Lib/_pyrepl/completing_reader.py:310–317  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

308 self.cmpltn_action = None
309
310 def get_stem(self) -> str:
311 st = self.syntax_table
312 SW = reader.SYNTAX_WORD
313 b = self.buffer
314 p = self.pos - 1
315 while p >= 0 and st.get(b[p], SW) == SW:
316 p -= 1
317 return ''.join(b[p+1:self.pos])
318
319 def get_completions(self, stem: str) -> tuple[list[str], CompletionAction | None]:
320 return [], None

Callers 2

doMethod · 0.45
doMethod · 0.45

Calls 2

getMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected