Files
python-uncompyle6/test/simple_source/bug36/05_36lambda.py
2018-03-19 09:09:59 -04:00

12 lines
382 B
Python

# From Python 3.6 hmac.py
# needed to change mklambda rule
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)
def bug():
def register(cls, func=None):
return lambda f: register(cls, f)