(self, avoid_type=False)
return s
Create a list string from a matrix.

        If avoid_type: avoid multiple 'mpf's.
Create a list string from a matrix.
Create a list string from a matrix .
def _toliststr(self, avoid_type=False):
        """
        Create a list string from a matrix.

        If avoid_type: avoid multiple 'mpf's.
        """
        # XXX: should be something like self.ctx._types
        typ = self.ctx.mpf
        s = '['
        for i in xrange(self.__rows):
            s += '['
            for j in xrange(self.__cols):
                if not avoid_type or not isinstance(self[i,j], typ):
                    a = repr(self[i,j])
                else:
                    a = "'" + str(self[i,j]) + "'"
                s += a + ', '
            s = s[:-2]
            s += '],\n '
        s = s[:-3]
        s += ']'
        return s
def _toliststr ( self , avoid_type = False ) : # XXX: should be something like self.ctx._types typ = self . ctx . mpf s = '[' for i in xrange ( self . __rows ) : s += '[' for j in xrange ( self . __cols ) : if not avoid_type or not isinstance ( self [ i , j ] , typ ) : a = repr ( self [ i , j ] ) else : a = "'" + str ( self [ i , j ] ) + "'" s += a + ', ' s = s [ : - 2 ] s += '],\n ' s = s [ : - 3 ] s += ']' return s