def stringify(value):
    string = str(value)
    if len(string) > 1:
        string = "(%s)" % string

    return string
Utility for stringifying an event.
dataset/ETHPy150Open ReactiveX/RxPY/rx/testing/marbles.py/stringify