[Numpy-discussion] Broadcasting rules (Ticket 76).

Travis Oliphant oliphant.travis at ieee.org
Mon Apr 24 14:30:01 CDT 2006

Sasha wrote:
>>>> x[:]=1,1
>>>> x[:]=1,1,1
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ValueError: number of elements in destination must be integer multiple
> of number of elements in source
I think the only reasonable thing to do is to raise an error unless the 
shapes were compatible like Numeric did and eliminate the multiple 
copying feature.

This would bring the desired consistency.


More information about the Numpy-discussion mailing list