| 1 | initial version |
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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.