#6570: indexing a matrix with a non-integer should return an IndexError, not a
TypeError
----------------------------+-----------------------------------------------
 Reporter:  jason           |       Owner:  was       
     Type:  defect          |      Status:  new       
 Priority:  major           |   Milestone:  sage-4.1.1
Component:  linear algebra  |    Keywords:            
 Reviewer:                  |      Author:            
   Merged:                  |  
----------------------------+-----------------------------------------------

Comment(by rbeezer):

 The Python Docs at

 http://docs.python.org/library/exceptions.html

 say:

 {{{IndexError}}}[[BR]]
     Raised when a sequence subscript is out of range. (Slice indices are
 silently truncated to fall in the allowed range; if an index is not a
 plain integer, {{{TypeError}}} is raised.)

 This seems to be the way these are both being used in the locations
 referenced.  So it would appear that current use is consistent with the
 Python standards?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6570#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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