You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
MAKE_FUNCTION_8 -> MAKE_FUNCTION_CLOSURE
Clarity is important.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Python 3.6, uses rule:
|
||||
# genexpr ::= load_closure load_genexpr LOAD_CONST
|
||||
# MAKE_FUNCTION_8 expr GET_ITER CALL_FUNCTION_1
|
||||
# MAKE_FUNCTION_CLOSURE expr GET_ITER CALL_FUNCTION_1
|
||||
def __sub__(self, other): # SList()-other
|
||||
return self.__class__(i for i in self if i not in other)
|
||||
|
@@ -4,8 +4,8 @@ def __init__(self, msg = None, digestmod = None):
|
||||
self.digest_cons = lambda d='': digestmod.new(d)
|
||||
|
||||
# From Python 3.6 functools.py
|
||||
# Bug was handling lambda for MAKE_FUNCTION_8 (closure)
|
||||
# vs to MAKE_FUNCTION_9 (pos_args + closure)
|
||||
# Bug was handling lambda for MAKE_FUNCTION_CLOSURE (closure)
|
||||
# vs to MAKE_FUNCTION_CLOSURE_POS (pos_args + closure)
|
||||
def bug():
|
||||
def register(cls, func=None):
|
||||
return lambda f: register(cls, f)
|
||||
|
Reference in New Issue
Block a user