def _process_getitem(self, node, **kwargs):
with self._interpolation():<EOL><INDENT>with self._python_bool_wrapper(**kwargs) as new_kwargs:<EOL><INDENT>self._process_node(node.node, **new_kwargs)<EOL>if isinstance(node.arg, nodes.Slice):<EOL><INDENT>self.output.write('<STR_LIT>')<EOL>if node.arg.step is not None:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>if node.arg.start is None:<EOL><INDENT>self.output.write('<STR_LIT:0>')<EOL><DEDENT>else:<EOL><INDENT>self._process_node(node.arg.start, **new_kwargs)<EOL><DEDENT>if node.arg.stop is None:<EOL><INDENT>self.output.write('<STR_LIT:)>')<EOL><DEDENT>else:<EOL><INDENT>self.output.write('<STR_LIT:U+002C>')<EOL>self._process_node(node.arg.stop, **new_kwargs)<EOL>self.output.write('<STR_LIT:)>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.output.write('<STR_LIT:[>')<EOL>self._process_node(node.arg, **new_kwargs)<EOL>self.output.write('<STR_LIT:]>')<EOL><DEDENT><DEDENT><DEDENT>
Processes a `GetItem` node e.g. {{ foo["bar"] }}