#6060: divmod fails when one argument is Integer and the other is a Python int
-------------------------------+--------------------------------------------
 Reporter:  fredrik.johansson  |       Owner:  somebody
     Type:  defect             |      Status:  new     
 Priority:  major              |   Milestone:          
Component:  basic arithmetic   |    Keywords:          
-------------------------------+--------------------------------------------
 {{{
 sage: divmod(10r,10)
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /home/fredrik/sage-3.4.2-linux-Ubuntu_8.10-sse2-i686-Linux/<ipython
 console> in <module>()

 /home/fredrik/sage-3.4.2-linux-
 Ubuntu_8.10-sse2-i686-Linux/local/lib/python2.5/site-
 packages/sage/structure/element.so in
 sage.structure.element.EuclideanDomainElement.__divmod__
 (sage/structure/element.c:13777)()

 AttributeError: 'int' object has no attribute 'quo_rem'
 }}}

 Attaching a patch.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6060>
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