[NumPy-Tickets] [NumPy] #1388: numpy.frombuffer calls PyErr_Format without actually throwing the error, causing bizarre errors later

NumPy Trac numpy-tickets@scipy....
Thu Oct 28 02:38:53 CDT 2010


#1388: numpy.frombuffer calls PyErr_Format without actually throwing the error,
causing bizarre errors later
------------------------+---------------------------------------------------
 Reporter:  baffe       |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  numpy.core  |     Version:  1.4.0   
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by fredpauling):

 Can someone please look into the zero-sized buffer issue?
 Surely calling frombuffer on an empty buffer with count=0 should return an
 empty array, not an exception?

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


More information about the NumPy-Tickets mailing list