MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_stem

Method get_stem

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

Source from the content-addressed store, hash-verified

283 self.cmpltn_menu_choices = []
284
285 def get_stem(self) -> str:
286 st = self.syntax_table
287 SW = reader.SYNTAX_WORD
288 b = self.buffer
289 p = self.pos - 1
290 while p >= 0 and st.get(b[p], SW) == SW:
291 p -= 1
292 return ''.join(b[p+1:self.pos])
293
294 def get_completions(self, stem: str) -> list[str]:
295 return []

Callers 2

doMethod · 0.45
doMethod · 0.45

Calls 2

getMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected