Given your restrictions I'd probably pick
[ x * y for x,y in izip(a,b) ]
(note the change to ``izip``).
But maybe you do not really need lists at all...

You can also do
c = (array(a)*array(b)).tolist()
which is nice and explicit but
builds 3 unnecessary arrays.

Alan Isaac

_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to