'Returns all coefficients from a univariate polynomial ``f``.
Examples
>>> from sympy import Poly
>>> from sympy.abc import x
>>> Poly(x**3 + 2*x - 1, x).all_coeffs()
[1, 0, 2, -1]'

def all_coeffs(f):

    return [f.rep.dom.to_sympy(c) for c in f.rep.all_coeffs()]
