(self, ins)
return indices
Parse array indices.
Parse array indices.
Parse array indices .
def parse_indices(self, ins):
        """Parse array indices."""
        indices = []
        if ins.skip_blank_read_if((b'[', b'(')):
            # it's an array, read indices
            while True:
                expr = self.parse(ins)
                indices.append(values.to_int(expr))
                if not ins.skip_blank_read_if((b',',)):
                    break
            ins.require_read((b']', b')'))
        return indices
def parse_indices ( self , ins ) : indices = [ ] if ins . skip_blank_read_if ( ( b'[' , b'(' ) ) : # it's an array, read indices while True : expr = self . parse ( ins ) indices . append ( values . to_int ( expr ) ) if not ins . skip_blank_read_if ( ( b',' , ) ) : break ins . require_read ( ( b']' , b')' ) ) return indices