MCPcopy Index your code
hub / github.com/python/cpython / mixedargs_sum

Function mixedargs_sum

Lib/test/test_keywordonlyarg.py:16–17  ·  view source on GitHub ↗
(a, b=0, *arg, k1, k2=0)

Source from the content-addressed store, hash-verified

14def keywordonly_and_kwarg_sum(*, k1, k2, **kwarg):
15 return k1 + k2 + sum(kwarg.values())
16def mixedargs_sum(a, b=0, *arg, k1, k2=0):
17 return a + b + k1 + k2 + sum(arg)
18def mixedargs_sum2(a, b=0, *arg, k1, k2=0, **kwargs):
19 return a + b + k1 + k2 + sum(arg) + sum(kwargs.values())
20

Callers 1

testFunctionCallMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…