Neil Cerutti wrote: > >>> b =[range(2), range(2)]
I often happened to use b = [[0] * N for i in xrange(N)] an approach that can also scale up in dimensions; for example for a cubic NxNxN matrix: b = [[[0] * N for i in xrange(N)] for j in xrange(N)] Andrea -- http://mail.python.org/mailman/listinfo/python-list