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

Method mkargs

Lib/test/test_decimal.py:5866–5877  ·  view source on GitHub ↗
(module, sig)

Source from the content-addressed store, hash-verified

5864 'context': P.getcontext()}}
5865
5866 def mkargs(module, sig):
5867 args = []
5868 kwargs = {}
5869 for name, param in sig.parameters.items():
5870 if name == 'self': continue
5871 if param.kind == POS:
5872 args.append(pdict[module][name])
5873 elif param.kind == POS_KWD:
5874 kwargs[name] = pdict[module][name]
5875 else:
5876 raise TestFailed("unexpected parameter kind")
5877 return args, kwargs
5878
5879 def tr(s):
5880 """The C Context docstrings use 'x' in order to prevent confusion

Callers

nothing calls this directly

Calls 3

TestFailedClass · 0.90
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected