Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _event
Method
_event
Lib/test/test_pyrepl/test_eventqueue.py:155–158 ·
view source on GitHub ↗
(evt, data, raw=None)
Source
from the content-addressed store, hash-verified
153
eq.keymap = {}
154
155
def
_event(evt, data, raw=None):
156
r = raw
if
raw is not None
else
data.encode(eq.encoding)
157
e = Event(evt, data, r)
158
return
e
159
160
def
_push(keys):
161
for
k in keys:
Callers
nothing calls this directly
Calls
2
Event
Class · 0.90
encode
Method · 0.45
Tested by
no test coverage detected