def ZMod(m):
 def ModM(coef):
  return Mod(coef, m)
 return ModM

def ZMod ( m ) : def ModM ( coef ) : return Mod ( coef , m ) return ModM
return a function that makes mod objects for a particular modulus m .