mp.c: Tighten up the `MP' and `GF' implicit conversions.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 24 Nov 2019 00:28:14 +0000 (00:28 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:51:32 +0000 (17:51 +0000)
commit7032ee7c4d3ed206be5b972a9274dab27bbd2936
tree3c2881d299d7303b333f5822be1d9c9dcf137f69
parenta70a5a8079d70084c6c630071f22585228b2107f
mp.c: Tighten up the `MP' and `GF' implicit conversions.

Allow implicit conversions to `MP' from `PrimeFilter' (for old time's
sake), and anything /other than/ field elements and polynomials which
implements the `__index__' implicit conversion to integer.

Don't allow implicit conversions to `GF' at all.
mp.c
t/t-convert.py
t/t-mp.py