Python 2.2 code anomoly?

Python 2.2 may generate PRINT_ITEM_CONT in some places for PRINT_ITEM
This commit is contained in:
rocky
2018-03-05 12:25:31 -05:00
parent 61534ceed5
commit cad1325a90

View File

@@ -18,6 +18,10 @@ class Python22Parser(Python23Parser):
COME_FROM POP_TOP COME_FROM
list_for ::= expr for_iter store list_iter CONTINUE JUMP_FORWARD
COME_FROM POP_TOP COME_FROM
# Some versions of Python 2.2 have been found to generate
# PRINT_ITEM_CONT for PRINT_ITEM
print_items_stmt ::= expr PRINT_ITEM_CONT print_items_opt
'''
def customize_grammar_rules(self, tokens, customize):