(self, attributes)
Creates a new PylsyTable object with the given attrs (cols).
Creates a new PylsyTable object with the given attrs (cols).
Creates a new PylsyTable object with the given attrs ( cols ) .
def __init__(self, attributes):
        """Creates a new PylsyTable object with the given attrs (cols)."""
        self.StrTable = ""
        self.Table = []
        self.AttributesLength = []
        self.Lines_num = 0
        if type(attributes) != list:
            attributes = [attributes]
        self.Attributes = [u"{0}".format(attr) for attr in attributes]
        self.Cols_num = len(self.Attributes)
        for attribute in self.Attributes:
            col = dict()
            col[attribute] = []
            self.Table.append(col)
def __init__ ( self , attributes ) : self . StrTable = "" self . Table = [ ] self . AttributesLength = [ ] self . Lines_num = 0 if type ( attributes ) != list : attributes = [ attributes ] self . Attributes = [ u"{0}" . format ( attr ) for attr in attributes ] self . Cols_num = len ( self . Attributes ) for attribute in self . Attributes : col = dict ( ) col [ attribute ] = [ ] self . Table . append ( col )