Unfortunately, it is still necessary in 5.11.beta3:

sage: R = PolynomialRing(QQ, 3, "x").fraction_field()
sage: R
Fraction Field of Multivariate Polynomial Ring in x0, x1, x2 over Rational Field
sage: R(SR("x0/x1"))
x0/x1
sage: R("x0/x1")
Traceback (most recent call last):
...
TypeError: no canonical coercion from Fraction Field of Multivariate Polynomial 
Ring in x0, x1, x2 over Rational Field to Rational Field


And I certainly used fractional coefficients like that, so let's not just 
remove SR - I'll think about alternatives. Perhaps we can try to use SR 
only when not using it fails.

On Monday, 15 July 2013 20:08:30 UTC-6, Volker Braun wrote:
>
> Yes that line looks suspicious...
>
> On Monday, July 15, 2013 7:40:36 PM UTC-4, Ursula wrote:
>>
>> # Direct conversion "a/b" to F does not work in Sage-4.6.alpha3,
>> # so we go through SR, even though it is quite slow.
>> coefficients = (F(SR(coef)) for coef in coefficients)
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to