def getTranspose(self):
        """ Return a transpose of the matrix without
        modifying the matrix itself """
        
        m, n = self.n, self.m
        mat = Matrix(m, n)
        mat.rows =  [list(item) for item in zip(*self.rows)]
        
        return mat
 Return a transpose of the matrix without
        modifying the matrix itself 
recipes/Python/578131_A_simple_Matrix_class/recipe-578131.py