'Returns all coefficients from ``f``.'

def all_coeffs(f):

    if (not f.lev):
        if (not f):
            return [f.dom.zero]
        else:
            return [c for c in f.rep]
    else:
        raise PolynomialError('multivariate    polynomials    not    supported')
