Work on MAKE_CLOSURE rules for Python 3.3

This commit is contained in:
rocky
2016-01-01 21:53:21 -05:00
parent b89177d234
commit 7d42329c31
4 changed files with 48 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
# Tests
# Python3:
# funcdef ::= mkfunc designator
# designator ::= STORE_DEREF
# mkfunc ::= load_closure BUILD_TUPLE_1 LOAD_CONST LOAD_CONST MAKE_CLOSURE_0
# load_closure ::= LOAD_CLOSURE
#
# Python2:
# funcdef ::= mkfunc designator
# designator ::= STORE_DEREF
# mkfunc ::= load_closure LOAD_CONST MAKE_CLOSURE_0
# load_closure ::= LOAD_CLOSURE
def bug():
def convert(node):
if node:
return convert(node.left)
return