#5347: divides() may fail for 1 on the rhs.
------------------------------+---------------------------------------------
 Reporter:  malb              |       Owner:  somebody  
     Type:  defect            |      Status:  new       
 Priority:  major             |   Milestone:  sage-3.4.1
Component:  basic arithmetic  |    Keywords:            
------------------------------+---------------------------------------------
 {{{
 sage: K = GF(7)
 sage: K(3).divides(1)
 False
 sage: K(3).divides(K(1))
 Traceback (most recent call last)
 ...
 ZeroDivisionError: reduction modulo right not defined.
 }}}

 This is because of this code added at http://hg.sagemath.org/sage-
 main/rev/0cb746e1a4bd

 {{{
 def divides(self, x):
     return (x % self) == 0
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5347>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to