def digits(n, b=10):

    b = as_int(b)
    n = as_int(n)
    if b <= 1:
        raise ValueError("b must be >= 2")
    else:
        x, y = abs(n), []
        while x >= b:
            x, r = divmod(x, b)
            y.append(r)
        y.append(x)
        y.append(-b if n < 0 else b)
        y.reverse()
        return y
Returns the set of data dependencies as producer infos corresponding to data requirements.
dataset/ETHPy150Open sympy/sympy/sympy/ntheory/factor_.py/digits--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/round_manager.py/RoundManager.get_dependencies