from numpy import array
a = array((1.0, 2.0))

b = c = 15
b = b*a#ok
c *= a#ok

d = array(15)
e = array(15)
d = d*a#this works ok
e *= a#this intended to be same as prev line, but yields error:
Traceback (innermost last):
 File "<stdin>", line 1, in <module>
ValueError: invalid return array shape
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to