def dmp_eval(f, a, u, K):
    if not u:
        return dup_eval(f, a, K)

    if not a:
        return dmp_TC(f, K)

    result, v = dmp_LC(f, K), u - 1

    for coeff in f[1:]:
        result = dmp_mul_ground(result, a, v, K)
        result = dmp_add(result, coeff, v, K)

    return result
Change a stream-id mid-stream, but with a DETACHED message
dataset/ETHPy150Open sympy/sympy/sympy/polys/densetools.py/dmp_eval--crossover with--dataset/ETHPy150Open meejah/txtorcon/test/test_stream.py/StreamTests.test_stream_changed_with_detach