Nadav, it's because reverse() modifies the list in-place. I've gotten this gotcha many times,
If you had done: >>> a = [1,2,3,4] >>> a.reverse() >>> a [4, 3, 2, 1] Or even better: >>> a = [1,2,3,4][::-1] >>> a [4, 3, 2, 1] Cheers, Xav
-- http://mail.python.org/mailman/listinfo/python-list