[Numpy-tickets] [NumPy] #379: different error when slicing with Python 2.4 and 2.5

NumPy numpy-tickets at scipy.net
Fri Dec 1 23:23:08 CST 2006

#379: different error when slicing with Python 2.4 and 2.5
 Reporter:  benjamin.thyreau  |        Owner:  somebody
     Type:  defect            |       Status:  closed  
 Priority:  normal            |    Milestone:          
Component:  Other             |      Version:          
 Severity:  normal            |   Resolution:  invalid 
 Keywords:                    |  
Changes (by oliphant):

  * status:  new => closed
  * resolution:  => invalid


 The problem is that Python calls array_slice if the slice members *are*
 integers in Python 2.4 and *can be* converted to integers in Python 2.5.
 Array's can be interpreted as indices in Python 2.5 and so pass the
 IndexCheck that Python uses internally.  But, then the attempt at
 conversion fails.  Python should probably go through the more generic
 getitem call at that point, but right now it doesn't.  I think a bug-
 report should be filed for Python 2.5.

 This is an unfortunate side effect of the recent index addition to Python

Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/379#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list