Commit 79a06bdf authored by Jeremy Hylton's avatar Jeremy Hylton

Add __getitem__() handler for use by visitContinue()

parent 5519120a
......@@ -39,6 +39,8 @@ class Stack:
self.stack.append(elt)
def top(self):
return self.stack[-1]
def __getitem__(self, index): # needed by visitContinue()
return self.stack[index]
MANGLE_LEN = 256 # magic constant from compile.c
......
......@@ -39,6 +39,8 @@ class Stack:
self.stack.append(elt)
def top(self):
return self.stack[-1]
def __getitem__(self, index): # needed by visitContinue()
return self.stack[index]
MANGLE_LEN = 256 # magic constant from compile.c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment