MCPcopy Create free account
hub / github.com/python/cpython / _hook

Function _hook

Lib/test/test_pyrepl/test_pyrepl.py:1650–1652  ·  view source on GitHub ↗
(name: str, _args: tuple)

Source from the content-addressed store, hash-verified

1648
1649
1650def _hook(name: str, _args: tuple):
1651 if _audit_events is not None: # No-op when not activated
1652 _audit_events.add(name)
1653sys.addaudithook(_hook)
1654
1655

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…