MCPcopy Index your code
hub / github.com/grantjenks/python-sortedcontainers / wrapper

Function wrapper

sortedcontainers/sortedlist.py:65–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63
64 @wraps(user_function)
65 def wrapper(self):
66 key = id(self), get_ident()
67 if key in repr_running:
68 return fillvalue
69 repr_running.add(key)
70 try:
71 result = user_function(self)
72 finally:
73 repr_running.discard(key)
74 return result
75
76 return wrapper
77

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected