Lines Matching defs:hooks
172 /* Audit hooks cannot be called with a NULL thread state */
180 /* Early exit when no hooks are registered */
188 PyObject *hooks = NULL;
213 /* Call global hooks */
226 /* Call interpreter hooks */
233 hooks = PyObject_GetIter(is->audit_hooks);
234 if (!hooks) {
238 /* Disallow tracing in hooks unless explicitly enabled */
240 while ((hook = PyIter_Next(hooks)) != NULL) {
274 Py_XDECREF(hooks);
325 * Must be finalizing to clear hooks */
343 PySys_WriteStderr("# clear sys.audit hooks\n");
346 /* Hooks can abort later hooks for this event, but cannot
374 /* Invoke existing audit hooks to allow them an opportunity to abort. */
375 /* Cannot invoke hooks until we are initialized */
427 /* Invoke existing audit hooks to allow them an opportunity to abort. */
443 /* Avoid having our list of hooks show up in the GC module */
457 Passes the event to any audit hooks that are attached.");
1223 generators hooks. The attributes are read only.");
1293 Return the installed asynchronous generators hooks.