def _trace_repr(value, size=40):
    value = repr(value)
    if len(value) > size:
        value = value[:size//2-2] + '...' + value[-size//2-1:]
    return value
dataset/ETHPy150Open ardekantur/pyglet/pyglet/__init__.py/_trace_repr/original