MCPcopy Create free account
hub / github.com/numpy/numpy / ArgPack

Class ArgPack

benchmarks/benchmarks/bench_ufunc.py:439–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437
438
439class ArgPack:
440 __slots__ = ['args', 'kwargs']
441 def __init__(self, *args, **kwargs):
442 self.args = args
443 self.kwargs = kwargs
444 def __repr__(self):
445 return '({})'.format(', '.join(
446 [repr(a) for a in self.args] +
447 ['{}={}'.format(k, repr(v)) for k, v in self.kwargs.items()]
448 ))
449
450
451class ArgParsing(Benchmark):

Callers 2

ArgParsingClass · 0.85
ArgParsingReduceClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected