def BUILD_SLICE(self, numargs): if numargs == 3: w_step = self.popvalue() elif numargs == 2: w_step = w_None else: raise BytecodeCorruption w_end = self.popvalue() w_start = self.popvalue() w_slice = op.newslice(w_start, w_end, w_step).eval(self) self.pushvalue(w_slice)
def BUILD_SLICE(self, numargs): if numargs == 3: w_step = self.popvalue() elif numargs == 2: w_step = w_None else: raise BytecodeCorruption w_end = self.popvalue() w_start = self.popvalue() w_slice = op.newslice(w_start, w_end, w_step).eval(self) self.pushvalue(w_slice)