diff options
Diffstat (limited to 'tests/basics/fun-kwonly.py')
-rw-r--r-- | tests/basics/fun-kwonly.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/basics/fun-kwonly.py b/tests/basics/fun-kwonly.py index 8bda68d95a..dd654eb441 100644 --- a/tests/basics/fun-kwonly.py +++ b/tests/basics/fun-kwonly.py @@ -43,14 +43,14 @@ def f(a, *, b, **kw): f(1, b=2) f(1, b=2, c=3) -## with a default value; not currently working -#def g(a, *, b=2, c): -# print(a, b, c) -# -#g(1, c=3) -#g(1, b=3, c=4) -#g(1, **{'c':3}) -#g(1, **{'b':'3', 'c':4}) +# with a default value +def g(a, *, b=2, c): + print(a, b, c) + +g(1, c=3) +g(1, b=3, c=4) +g(1, **{'c':3}) +g(1, **{'b':'3', 'c':4}) # with named star def f(*a, b, c): |