def dmp_degree_list(f, u):
 degs = ([(- oo)] * (u + 1))
 _rec_degree_list(f, u, 0, degs)
 return tuple(degs)

def dmp_degree_list ( f , u ) : degs = ( [ ( - oo ) ] * ( u + 1 ) ) _rec_degree_list ( f , u , 0 , degs ) return tuple ( degs )
return a list of degrees of f in k[x] .