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

David Cournapeau david at silveregg.co.jp
Tue Feb 2 00:03:05 EST 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,

cheers,

David



More information about the NumPy-Discussion mailing list