You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Start 3.3 positional and kw parameters
Semantic routines need more work.
This commit is contained in:
@@ -530,7 +530,14 @@ class Python3Parser(PythonParser):
|
||||
rule = ('mklambda ::= %sLOAD_LAMBDA LOAD_CONST %s' %
|
||||
('pos_arg '* args_pos, opname))
|
||||
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||
if self.version > 3.2:
|
||||
if self.version == 3.3:
|
||||
# positional args cafter keyword args
|
||||
rule = ('mkfunc ::= kwargs %s%s %s' %
|
||||
('pos_arg ' * args_pos,
|
||||
'LOAD_CONST ' * 2,
|
||||
opname))
|
||||
elif self.version > 3.3:
|
||||
# positional args before keyword args
|
||||
rule = ('mkfunc ::= %skwargs %s %s' %
|
||||
('pos_arg ' * args_pos,
|
||||
'LOAD_CONST ' * 2,
|
||||
|
Reference in New Issue
Block a user