Python 3.2 & 3.3 handle STORE_NAME better

This commit is contained in:
rocky
2016-07-11 23:24:52 -04:00
parent 55b269f744
commit 78f24f9c66
4 changed files with 21 additions and 2 deletions

View File

@@ -570,14 +570,16 @@ class Python32Parser(Python3Parser):
def p_32(self, args):
"""
# Store locals is only in Python 3.2 and 3.3
designator ::= STORE_LOCALS
stmt ::= store_locals
store_locals ::= LOAD_FAST STORE_LOCALS
"""
class Python33Parser(Python3Parser):
def p_33(self, args):
"""
# Store locals is only in Python 3.2 and 3.3
designator ::= STORE_LOCALS
stmt ::= store_locals
store_locals ::= LOAD_FAST STORE_LOCALS
# Python 3.3 adds yield from.
expr ::= yield_from