You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
More 3.7 grammar rules...
largely adapted from 3.6
This commit is contained in:
BIN
test/bytecode_3.7/01_call_function.pyc
Normal file
BIN
test/bytecode_3.7/01_call_function.pyc
Normal file
Binary file not shown.
@@ -248,6 +248,14 @@ class Python36Parser(Python35Parser):
|
||||
starred ::= expr
|
||||
call_ex ::= expr starred CALL_FUNCTION_EX
|
||||
""", nop_func)
|
||||
if self.version > 3.6:
|
||||
self.addRule("""
|
||||
expr ::= call_ex_kw3
|
||||
call_ex_kw3 ::= expr
|
||||
build_tuple_unpack_with_call
|
||||
expr
|
||||
CALL_FUNCTION_EX
|
||||
""", nop_func)
|
||||
pass
|
||||
else:
|
||||
super(Python36Parser, self).custom_classfunc_rule(opname, token,
|
||||
|
Reference in New Issue
Block a user