[NumPy-Tickets] [NumPy] #1265: 64bit System: take raises TypeError when using int64 indices

NumPy Trac numpy-tickets@scipy....
Thu Jul 29 17:18:29 CDT 2010


#1265: 64bit System: take raises TypeError when using int64 indices
---------------------+------------------------------------------------------
 Reporter:  crassus  |       Owner:  somebody  
     Type:  defect   |      Status:  needs_info
 Priority:  normal   |   Milestone:            
Component:  Other    |     Version:  1.3.0     
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by pv):

  * status:  new => needs_info


Comment:

 Works for me. Maybe has been fixed in 1.4.1?
 {{{
 $ uname -a
 Linux XXX 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC 2010 x86_64
 GNU/Linux
 Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
 [GCC 4.3.2] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>> np.__file__
 '..../numpy-2.0.0.dev-py2.5-linux-x86_64.egg/numpy/__init__.pyc'
 >>> import numpy as N
 >>>
 >>> dat= N.arange(10)
 >>> idxs= N.array([3,1,4,1,5,9], dtype=N.int64)
 >>> print dat[idxs]    # works fine
 [3 1 4 1 5 9]
 >>> print dat.take(N.array(idxs, dtype=N.int32))    # work fine, too
 [3 1 4 1 5 9]
 >>> print dat.take(idxs)
 [3 1 4 1 5 9]
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1265#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list