def _process_slice(self, arg):
start = arg.start<EOL>stop = arg.stop<EOL>step = arg.step<EOL>nrows = self._info['<STR_LIT>']<EOL>if step is None:<EOL><INDENT>step = <NUM_LIT:1><EOL><DEDENT>if start is None:<EOL><INDENT>start = <NUM_LIT:0><EOL><DEDENT>if stop is None:<EOL><INDENT>stop = nrows<EOL><DEDENT>if start < <NUM_LIT:0>:<EOL><INDENT>start = nrows + start<EOL>if start < <NUM_LIT:0>:<EOL><INDENT>raise IndexError("<STR_LIT>")<EOL><DEDENT><DEDENT>if stop < <NUM_LIT:0>:<EOL><INDENT>stop = nrows + start + <NUM_LIT:1><EOL><DEDENT>if stop < start:<EOL><INDENT>stop = start<EOL><DEDENT>if stop > nrows:<EOL><INDENT>stop = nrows<EOL><DEDENT>return slice(start, stop, step)<EOL>
process the input slice for use calling the C code