#5047: comparing complex i raises error
------------------------------+---------------------------------------------
 Reporter:  burcin            |        Owner:  somebody
     Type:  defect            |       Status:  new     
 Priority:  major             |    Milestone:  sage-3.3
Component:  basic arithmetic  |   Resolution:          
 Keywords:                    |  
------------------------------+---------------------------------------------
Comment (by SimonKing):

 I believe this ticket is close to being invalid, because Sage is nearly
 consistent with Python.

 In Python, one gets
 {{{
 >>> cmp(1j,0)
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 TypeError: no ordering relation is defined for complex numbers
 }}}

 Only I would say that the error message in Sage could be clearer. So, I
 suggest to catch the error and reraise a TypeError with an appropriate
 error message.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5047#comment:1>
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