[NumPy-Tickets] [NumPy] #1756: Segfault when recasting string arrays

NumPy Trac numpy-tickets@scipy....
Sat Mar 5 10:19:30 CST 2011


#1756: Segfault when recasting string arrays
--------------------+-------------------------------------------------------
 Reporter:  faltet  |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  devel      
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by charris):

 Replying to [comment:2 charris]:
 > It also does this for slices:
 >
 >
 > {{{
 > In [8]: array(arr[::2], dtype="|S3")
 > Out[8]:
 > array(['1', '\x00\x001', '23'],
 >       dtype='|S3')
 >
 > }}}
 >
 > So the slicing is ignored.

 Rather, the sliced data is simply copied over.

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


More information about the NumPy-Tickets mailing list