See https://trac.sagemath.org/ticket/28234
Le 15/07/2021 à 18:13, Nils Bruin a écrit :
Following up: while sage's "RationalNumber" is indeed a numbers.Rational according to "isinstance", it does not actually adhere to the stated API: "numerator" and "denominator" are supposed to be properties, but in sage they are methods. So even in places where we are trying to fit into "Number" we are already failing. Changing the way that "numerator" and "denominator" behave would break a *LOT* of sage code. I don't think we can do it.
-- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/39d585b1-bfce-3cab-d1e0-15fcc061b8ce%40gmail.com.
