[Numpy-discussion] index objects are not broadcastable to a single shape

Simon Burton simon at arrowtheory.com
Wed Apr 12 18:17:03 CDT 2006


This must be up there with the most useless confusing error messages:

>>> a=numpy.array([1,2,3])
>>> b=numpy.array([1,2,3,4])
>>> a*b
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: index objects are not broadcastable to a single shape
>>>

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the Numpy-discussion mailing list