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>
Sat, 11 Apr 2020 11:49:31 +0000 (12:49 +0100)
commite7d2e2e29042a980933261a173d96c71982514fa
tree8e10047fcf1736304f9f37bb6c79f40cbda19507
parent712ebf4b2ecd07e737be26637c31576aa408378f
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