diff options
Diffstat (limited to 'Lib/compiler/misc.py')
-rw-r--r-- | Lib/compiler/misc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/compiler/misc.py b/Lib/compiler/misc.py index b834a2e..9cbd73f 100644 --- a/Lib/compiler/misc.py +++ b/Lib/compiler/misc.py @@ -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 |