A more elegant way to do this list comprehension?
This probably seems very trivial, maybe even a bit silly, but I was wondering if someone has a better list comprehension that does the same thing as this one:>>> print [[[i]*i for i in range(1,9)][j][k] for j in range(8) for k in range(j+1)] [1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6,
Help installing Python Constraints
Hi Can someone help me figure out how to install Python Constraints on Windows? I have Python 2.4 Thanks -- http://mail.python.org/mailman/listinfo/python-list