On 9 March 2015 at 11:04, Jori Mantysalo <[email protected]> wrote: > On Mon, 9 Mar 2015, John Cremona wrote: > >> sage: n = 10/2 >> sage: n >> 5 >> sage: n.is_prime() >> False > > > I got AttributeError: 'sage.rings.rational.Rational' object has no attribute > 'is_prime' on Sage 6.4. When has this changed? Why?
I don't know but would be interested to see people's reasons. A good error message (telling the user to try coercing into ZZ first) would be helpful. This is surely consistent with allowing n.factor() for nonzero rationals. John > > -- > Jori Mäntysalo -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
