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

Method do

Lib/_pyrepl/commands.py:369–379  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

367
368class self_insert(EditCommand):
369 def do(self) -> None:
370 r = self.reader
371 text = self.event * r.get_arg()
372 r.insert(text)
373 if r.paste_mode:
374 data = ""
375 ev = r.console.getpending()
376 data += ev.data
377 if data:
378 r.insert(data)
379 r.last_refresh_cache.invalidated = True
380
381
382class insert_nl(EditCommand):

Callers

nothing calls this directly

Calls 3

get_argMethod · 0.80
insertMethod · 0.45
getpendingMethod · 0.45

Tested by

no test coverage detected