

def __new__(cls, name):
    if (name not in cls.__events__):
        event = super(Event, cls).__new__(cls)
        cls.__events__[name] = event
        return event
    return cls.__events__[name]

dataset/ETHPy150Open eleme/archer/archer/event.py Event.__new__/original