(self, name, index, remaining_dimensions)
Convert BASIC array to Python list.
Convert BASIC array to Python list.
Convert BASIC array to Python list .
def _to_list(self, name, index, remaining_dimensions):
        """Convert BASIC array to Python list."""
        if not remaining_dimensions:
            return []
        elif len(remaining_dimensions) == 1:
            return [
                self.get(name, index+[i+(self._base or 0)]).to_value()
                for i in range(remaining_dimensions[0])
            ]
        else:
            return [
                self._to_list(name, index+[i+(self._base or 0)], remaining_dimensions[1:])
                for i in range(remaining_dimensions[0])
            ]
def _to_list ( self , name , index , remaining_dimensions ) : if not remaining_dimensions : return [ ] elif len ( remaining_dimensions ) == 1 : return [ self . get ( name , index + [ i + ( self . _base or 0 ) ] ) . to_value ( ) for i in range ( remaining_dimensions [ 0 ] ) ] else : return [ self . _to_list ( name , index + [ i + ( self . _base or 0 ) ] , remaining_dimensions [ 1 : ] ) for i in range ( remaining_dimensions [ 0 ] ) ]