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

Function code_to_events

Lib/test/test_pyrepl/support.py:46–48  ·  view source on GitHub ↗
(code: str)

Source from the content-addressed store, hash-verified

44
45
46def code_to_events(code: str):
47 for c in code:
48 yield Event(evt="key", data=c, raw=bytearray(c.encode("utf-8")))
49
50
51def clean_screen(reader: ReadlineAlikeReader) -> list[str]:

Calls 2

EventClass · 0.90
encodeMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…