[NumPy-Tickets] [NumPy] #440: Inconsistent behaviour for empty arrays

NumPy Trac numpy-tickets@scipy....
Fri Apr 1 15:12:45 CDT 2011

#440: Inconsistent behaviour for empty arrays
 Reporter:  stefan      |       Owner:  stefan        
     Type:  defect      |      Status:  needs_decision
 Priority:  normal      |   Milestone:  Unscheduled   
Component:  numpy.core  |     Version:                
 Keywords:              |  

Comment(by rgommers):

 NaN is better than an exception, people complain about exceptions
 regularly because they may interrupt and throw away long computations.

 Just returning an empty array works too I think. See #1773 and #1387 for
 related tickets.

Ticket URL: <http://projects.scipy.org/numpy/ticket/440#comment:8>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list