You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Add generator expression Python 3.0 .. 3.2
This commit is contained in:
@@ -15,6 +15,12 @@ class Python32Parser(Python3Parser):
|
|||||||
store_locals ::= LOAD_FAST STORE_LOCALS
|
store_locals ::= LOAD_FAST STORE_LOCALS
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def p_gen_comp(self, args):
|
||||||
|
"""
|
||||||
|
genexpr_func ::= LOAD_ARG FOR_ITER store comp_iter JUMP_BACK
|
||||||
|
"""
|
||||||
|
|
||||||
def p_32to35(self, args):
|
def p_32to35(self, args):
|
||||||
"""
|
"""
|
||||||
if_exp ::= expr jmp_false expr jump_forward_else expr COME_FROM
|
if_exp ::= expr jmp_false expr jump_forward_else expr COME_FROM
|
||||||
|
@@ -403,7 +403,7 @@ class Python37Parser(Python37BaseParser):
|
|||||||
list_if_not ::= expr jmp_true list_iter
|
list_if_not ::= expr jmp_true list_iter
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def p_set_comp(self, args):
|
def p_gen_comp(self, args):
|
||||||
"""
|
"""
|
||||||
comp_iter ::= comp_for
|
comp_iter ::= comp_for
|
||||||
comp_body ::= gen_comp_body
|
comp_body ::= gen_comp_body
|
||||||
|
Reference in New Issue
Block a user