Searched refs:hook_args (Results 1 – 3 of 3) sorted by relevance
1467 PyObject *hook_args = make_unraisable_hook_args( in _PyErr_WriteUnraisableMsg() local1469 if (hook_args == NULL) { in _PyErr_WriteUnraisableMsg()1478 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1482 if (_PySys_Audit(tstate, "sys.unraisablehook", "OO", hook, hook_args) < 0) { in _PyErr_WriteUnraisableMsg()1483 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1490 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1494 PyObject *res = PyObject_CallOneArg(hook, hook_args); in _PyErr_WriteUnraisableMsg()1495 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()
1024 hook_args = None1027 nonlocal hook_args1028 hook_args = args1036 self.assertEqual(getattr(hook_args, attr),1038 (hook_args, expected))1042 hook_args = None
1294 def hook(hook_args): argument1296 args = hook_args