MCPcopy Create free account
hub / github.com/ActiveState/code / kfpartial

Function kfpartial

recipes/Python/577922_partial_out_order/recipe-577922.py:26–27  ·  view source on GitHub ↗
(fun, *args, **kwargs)

Source from the content-addressed store, hash-verified

24print partial(keywords_first(fun2), a=1, c=2, b=2)(3, 4, 5, 6, 7) # noramlly: TypeError ...
25
26def kfpartial(fun, *args, **kwargs):
27 return partial(keywords_first(fun), *args, **kwargs)
28
29print kfpartial(fun2, a=1, b=2)(3, 4, 5, 6, 7, c=3)

Callers 1

recipe-577922.pyFile · 0.85

Calls 2

partialFunction · 0.85
keywords_firstFunction · 0.85

Tested by

no test coverage detected