Commit 65f57569 authored by Stefan Behnel's avatar Stefan Behnel

test for T736 fix

parent 45c523f9
# 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