

def on_event(self, name, args=[], kwargs=dict()):
    if args:
        self.events.append((name, args))
        kwargs.emit(name, *args)
    else:
        self.events.append((name, kwargs))
        self.emit(name, **kwargs)
    return name

dataset/ETHPy150Open mrjoes/tornadio2/tests/session_test.py DummyConnection.on_event/VarMisuse@41/44 `self`->`kwargs`