#5759: bug in divides
------------------------------+---------------------------------------------
Reporter: was | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone: sage-3.4.2
Component: basic arithmetic | Keywords:
------------------------------+---------------------------------------------
{{{
sage: Zmod(2)(0).divides(Zmod(2)(1))
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call
last)
/Users/wstein/.sage/temp/teragon.local/50691/_Users_wstein__sage_init_sage_0.py
in <module>()
/Users/wstein/build/sage-3.4.1.rc2/local/lib/python2.5/site-
packages/sage/structure/element.so in
sage.structure.element.CommutativeRingElement.divides
(sage/structure/element.c:12423)()
/Users/wstein/build/sage-3.4.1.rc2/local/lib/python2.5/site-
packages/sage/rings/integer_mod.so in
sage.rings.integer_mod.IntegerMod_int.__mod__
(sage/rings/integer_mod.c:17834)()
1867 def __mod__(IntegerMod_int self, right):
1868 right = int(right)
-> 1869 if self.__modulus.int32 % right != 0:
1870 raise ZeroDivisionError, "reduction modulo right not
defined."
1871 return integer_mod_ring.IntegerModRing(right)(self)
ZeroDivisionError: integer division or modulo by zero
Found by kilian__ on irc.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5759>
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
-~----------~----~----~----~------~----~------~--~---