def elem(self, x):
    ' return an element of value x\n        '
    if isinstance(x, FieldElem):
        assert (x.F == self)
        return x
    m = gmpy.mpz(1)
    assert (isinstance(x, int) or isinstance(x, long) or (type(x) == type(m)))
    return FieldElem(x, self)
return an element of value x
def elem(self, x):
    ' \n        '
    if isinstance(x, FieldElem):
        assert (x.F == self)
        return x
    m = gmpy.mpz(1)
    assert (isinstance(x, int) or isinstance(x, long) or (type(x) == type(m)))
    return FieldElem(x, self)