(self, python_list, name, index)
Convert Python list to BASIC array.
Convert Python list to BASIC array.
Convert Python list to BASIC array .
def _from_list(self, python_list, name, index):
        """Convert Python list to BASIC array."""
        if not python_list:
            return
        if isinstance(python_list[0], list):
            for i, v in enumerate(python_list):
                self._from_list(v, name, index+[i+(self._base or 0)])
        else:
            for i, v in enumerate(python_list):
                self.set(name, index+[i+(self._base or 0)], self._values.from_value(v, name[-1:]))
def _from_list ( self , python_list , name , index ) : if not python_list : return if isinstance ( python_list [ 0 ] , list ) : for i , v in enumerate ( python_list ) : self . _from_list ( v , name , index + [ i + ( self . _base or 0 ) ] ) else : for i , v in enumerate ( python_list ) : self . set ( name , index + [ i + ( self . _base or 0 ) ] , self . _values . from_value ( v , name [ - 1 : ] ) )