Ask Your Question

Revision history [back]

This is fixed in https://trac.sagemath.org/ticket/31716

In the meantime, I would convert elt via F(elt.numerator()) / F(elt.denominator()). With your example

sage: elt = Q(u)
sage: F(elt.numerator()) / F(elt.denominator())
u