Hey everyone,
   Here is an major inconsitancy I came across:
 
sage: int(5) % QQ(2)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-8ec0f9994ded> in <module>()
----> 1 int(Integer(5)) % QQ(Integer(2))

TypeError: Argument 'self' has incorrect type (expected sage.rings.rational.
Rational, got int)

Note that the following works:
 
sage: 5 % QQ(2)
1
sage: int(5) % ZZ(2)
1
sage: int(5) % RR(2)
1.00000000000000
 
Here's the ticket: http://trac.sagemath.org/sage_trac/ticket/14870
 
Should this be a blocker and does anyone know how we can fix this? (I can 
work around this by explict casting, so it's not a high priority, but it 
does slightly annoy me.)
 
Best,
Travis


 
 
 

-- 
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