mirror of https://github.com/python/cpython
Add __getitem__() handler for use by visitContinue()
This commit is contained in:
parent
7c10008917
commit
4bd4dddd55
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue