[Numpy-discussion] np.bincount raises MemoryError when given an empty array

David Cournapeau david@silveregg.co...
Mon Feb 1 23:03:05 CST 2010

Charles R Harris wrote:

> In this case I would expect an empty input to be a programming error and 
> raising an error to be the right thing.

Ok, I fixed the code in the trunk to raise a ValueError in that case. 
Changing to return an empty array would be easy,



More information about the NumPy-Discussion mailing list