MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / _run_operation

Function _run_operation

data_structures/hashing/tests/test_hash_map.py:20–24  ·  view source on GitHub ↗
(obj, fun, *args)

Source from the content-addressed store, hash-verified

18
19
20def _run_operation(obj, fun, *args):
21 try:
22 return fun(obj, *args), None
23 except Exception as e:
24 return None, e
25
26
27_add_items = (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected