[NumPy-Tickets] [NumPy] #1116: Fromstring returns wrong result for empty text strings.

NumPy Trac numpy-tickets@scipy....
Thu Mar 24 15:32:52 CDT 2011


#1116: Fromstring returns wrong result for empty text strings.
---------------------------------------+------------------------------------
 Reporter:  charris                    |       Owner:  somebody   
     Type:  defect                     |      Status:  new        
 Priority:  normal                     |   Milestone:  Unscheduled
Component:  numpy.core                 |     Version:             
 Keywords:  fromstring malformed data  |  
---------------------------------------+------------------------------------
Changes (by mwiebe):

  * milestone:  1.5.1 => Unscheduled


Comment:

 fromstring("", sep=" ") segfaults for me in the latest 1.6 beta.

 I think this function should be deprecated or its behavior changed. A
 function called "fromstring" shouldn't do binary data, that's what
 "frombuffer" or "frombinary" should be for. Especially in Py3 where
 strings are always unicode text data.

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


More information about the NumPy-Tickets mailing list