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

Function mixedargs_sum2

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

Source from the content-addressed store, hash-verified

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
21def sortnum(*nums, reverse=False):
22 return sorted(list(nums), reverse=reverse)

Callers 1

testFunctionCallMethod · 0.85

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…