Ejemplo n.º 1
0
 def insertCol(self,index,fillFunc=None):
     if not fillFunc:
         fillFunc = self.standardFillFunc
     if isinstance(fillFunc,list):
         fillFunc = self.listFillFunc(fillFunc,'y')
     elif not callable(fillFunc):
         raise EEAttributeError('Argument must be callable or list',('fullFunc',fillFunc))  
     for i in street(self):
         self[i].insert(index,fillFunc(index,i))
Ejemplo n.º 2
0
 def extend(self,iterable):
     trycemi = True
     try:
         newlist = []
         for row in iterable:
             if isinstance(row,list):
                 newlist.append(list(row))
             elif isstring(row):
                 data = row.split('\t')
                 if len(data) > 1:
                     trycemi = False
                 newlist.append(data)
         if trycemi:
             for i in street(newlist):
                 newlist[i] = newlist[i][0].split(';')
         list.extend(self,newlist)
     except TypeError:
         raise TypeError('Argument must be iterable')