#NEWLINE# def mul_monom( f , monom ) : #NEWLINE# #INDENT# monomial_mul = f . ring . monomial_mul #NEWLINE# terms = [ ( monomial_mul ( f_monom , monom ) , f_coeff ) for ( f_monom , f_coeff ) in f . items ( ) ] #NEWLINE# return f . new ( terms )