Skip to content

Commit 9d1cf50

Browse files
committed
Add generator expression Python 3.0 .. 3.2
1 parent 98626ee commit 9d1cf50

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

uncompyle6/parsers/parse32.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ def p_30to33(self, args):
1515
store_locals ::= LOAD_FAST STORE_LOCALS
1616
"""
1717

18+
19+
def p_gen_comp(self, args):
20+
"""
21+
genexpr_func ::= LOAD_ARG FOR_ITER store comp_iter JUMP_BACK
22+
"""
23+
1824
def p_32to35(self, args):
1925
"""
2026
if_exp ::= expr jmp_false expr jump_forward_else expr COME_FROM

uncompyle6/parsers/parse37.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def p_list_comprehension(self, args):
403403
list_if_not ::= expr jmp_true list_iter
404404
"""
405405

406-
def p_set_comp(self, args):
406+
def p_gen_comp(self, args):
407407
"""
408408
comp_iter ::= comp_for
409409
comp_body ::= gen_comp_body

0 commit comments

Comments
 (0)