Better handling of BUILD_TUPLE_UNPACK

This commit is contained in:
rocky
2018-04-06 11:35:41 -04:00
parent d9eb5c5b09
commit ff9ae4e792
4 changed files with 96 additions and 3 deletions

View File

@@ -679,7 +679,9 @@ class Python3Parser(PythonParser):
v = token.attr
rule = ('starred ::= %s %s' % ('expr ' * v, opname))
self.addRule(rule, nop_func)
elif opname_base in ('BUILD_LIST', 'BUILD_SET', 'BUILD_TUPLE'):
elif opname_base in ('BUILD_LIST', 'BUILD_SET', 'BUILD_TUPLE',
'BUILD_TUPLE_UNPACK'):
v = token.attr
is_LOAD_CLOSURE = False