Description
HI, My apologies for posting an end-user question here but I couldn't find an alternative place to pose it.
I have a python program that uses rationals and I am trying to test it with various libraries including python-flint.
My code works when I use the native Python import: "from fractions import Fraction as RF"
It also works when using the GMPY2 module import: "from gmpy2 import mpq as RF"
But using: "from flint import fmpq as RF" fails with the error :
builtins.TypeError: cannot create fmpq from object of type <class 'flint.types.fmpq.fmpq'>
Using: "from flint import *" followed by "RF = fmpq" fails with the same error
Using: "from flint import *" followed by "RF = flint.fmpq" fails with builtins.NameError: name 'flint' is not defined
So I have not found a way of importing fmpq from Python-Flint :-(
How should I be doing this?
with my regards,
Brian Gladman