Kay Schluehr wrote:
On the other hand i find Mathematicas list operators very appealing:

In =: [1,2,3]^2
Out=: [1,4,9]

Compared with this suggar the list comprehension [x**2 for x in
[1,2,3]]
is ugly.

py> import numarray py> a = numarray.array([1, 2, 3]) py> a**2 array([1, 4, 9])

STeVe
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to