Files
python-uncompyle6/test/simple_source/bug33/02_pos_args.py
2019-04-18 14:21:52 -04:00

13 lines
245 B
Python

# From Python 3.3.6 hmac.py
# Problem was getting wrong placement of positional args.
# In 3.6+ paramter handling changes
# RUNNABLE!
digest_cons = lambda d=b'': 5
# Handle single kwarg
x = lambda *, d=0: d
assert x(d=1) == 1
assert x() == 0