Hi,

why can't I do this:

        dummy = self.elements[toy][tox]

        self.elements[toy][tox] = self.elements[fromy][fromx]
        self.elements[fromy][fromx] = dummy

after initialising my nested list like this:

       self.elements = [[0 for column in range(dim)] for row in
range(dim) ]

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

Reply via email to