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

Function decorator

Lib/test/support/threading_helper.py:63–68  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

61 """
62 @functools.wraps(func)
63 def decorator(*args):
64 key = threading_setup()
65 try:
66 return func(*args)
67 finally:
68 threading_cleanup(*key)
69 return decorator
70
71

Callers

nothing calls this directly

Calls 3

threading_setupFunction · 0.85
threading_cleanupFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…