Commit d4fc2b2c authored by Stefan Behnel's avatar Stefan Behnel

test for T736 fix

--HG--
extra : transplant_source : %F7%D2%27p%B5%07%C6%DE%A7%17%C2%8C%D98%7FjWMH%03
parent 19637e80
# mode: run
# ticket: 736
# tags: default arguments, closure
def default_args_for_closure(a=1, b=2):
"""
>>> default_args_for_closure()()
(1, 2)
>>> default_args_for_closure(1, 2)()
(1, 2)
>>> default_args_for_closure(2)()
(2, 2)
>>> default_args_for_closure(8,9)()
(8, 9)
>>> default_args_for_closure(7, b=6)()
(7, 6)
>>> default_args_for_closure(a=5, b=4)()
(5, 4)
>>> default_args_for_closure(b=5, a=6)()
(6, 5)
"""
def func():
return a,b
return func
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment