Files
python-uncompyle6/test/simple_source/bug33/02_pos_args.py
2020-05-01 23:19:31 -04:00

15 lines
262 B
Python

# Python 3.3+
#
# From Python 3.3.6 hmac.py
# Problem was getting wrong placement of positional args.
# In 3.6+ parameter 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