MCPcopy Index your code
hub / github.com/bpython/bpython / __init__

Method __init__

bpython/test/test_curtsies.py:14–20  ·  view source on GitHub ↗
(self, initial_events=(), scheduled_events=())

Source from the content-addressed store, hash-verified

12
13class EventGenerator:
14 def __init__(self, initial_events=(), scheduled_events=()):
15 self._events = []
16 self._current_tick = 0
17 for e in initial_events:
18 self.schedule_event(e, 0)
19 for e, w in scheduled_events:
20 self.schedule_event(e, w)
21
22 def schedule_event(self, event, when):
23 self._events.append(ScheduledEvent(when, event))

Callers

nothing calls this directly

Calls 1

schedule_eventMethod · 0.95

Tested by

no test coverage detected