def wcswidth(pwcs, n=None):
    # pylint: disable=C0103
    #         Invalid argument name "n"

    end = len(pwcs) if n is None else n
    idx = slice(0, end)
    width = 0
    for char in pwcs[idx]:
        wcw = wcwidth(char)
        if wcw < 0:
            ucs = ord(char)
            if _bisearch(ucs, NONZERO_COMBINING):
                continue
            return -1
        else:
            width += wcw
    return width
Spawn a function.
dataset/ETHPy150Open mgaitan/sublime-rst-completion/wcwidth/wcwidth/wcwidth.py/wcswidth--crossover with--dataset/ETHPy150Open bcho/donkey/donkey/compat.py/spawn