def get_op_item(self, node, op_item, op_slice):
        op = op_item
        if isinstance(node, Leaf) and \
           node.value == ':':
            what = Slice((
                self.add_const_int(0),
                self.add_const_int(2147483647),
            ))
        else:
            what = self.dispatch(node)
        if isinstance(what, Slice):
            slice = []
            for i in what.items:
                if i is None:
                    slice.append(self.jsvars['None'])
                else:
                    slice.append(i)
            what = "[%s]" % ', '.join(slice)
            op = op_slice
        return op, what
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.get_op_item/original