On Fri, Sep 19, 2008 at 4:09 PM, lorenzo <[EMAIL PROTECTED]> wrote: > > > On Fri, Sep 19, 2008 at 2:50 PM, Arnar Flatberg <[EMAIL PROTECTED]>wrote: > >> >> >> I think >> [x*y for x in a for y in b] >> feels pythonic, however it has a surprisingly lousy performance. >> >> > This returns a len(x)*len(y) long list, which is not what you want. >
My bad, Its friday afternoon, I'll go home now :-) Arnar
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion