From: Mark Wooding Date: Sat, 17 Feb 2007 12:19:29 +0000 (+0000) Subject: mp: Remove checking from jacobi. X-Git-Tag: 1.0.1~10 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/commitdiff_plain/8d771c4aaff5da72521c1af4746e482c95c8c8e4 mp: Remove checking from jacobi. Now Catacomb uses the Kronecker symbol, which is defined for all pairs of integers. We no longer need to check that the arguments here are correct. --- diff --git a/mp.c b/mp.c index bc7f7a6..ceb9142 100644 --- a/mp.c +++ b/mp.c @@ -557,8 +557,6 @@ static PyObject *mpmeth_jacobi(PyObject *me, PyObject *arg) PyObject *z = 0; if (!PyArg_ParseTuple(arg, "O&:jacobi", convmp, &y)) goto end; - if (MP_NEGP(MP_X(me)) || MP_EVENP(MP_X(me))) - VALERR("must be positive and odd"); z = PyInt_FromLong(mp_jacobi(y, MP_X(me))); end: if (y) MP_DROP(y);