Home
last modified time | relevance | path

Searched refs:hook_args (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Python/
Derrors.c1495 PyObject *hook_args = make_unraisable_hook_args( in _PyErr_WriteUnraisableMsg() local
1497 if (hook_args == NULL) { in _PyErr_WriteUnraisableMsg()
1506 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()
1510 if (_PySys_Audit(tstate, "sys.unraisablehook", "OO", hook, hook_args) < 0) { in _PyErr_WriteUnraisableMsg()
1511 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()
1518 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()
1522 PyObject *res = PyObject_CallOneArg(hook, hook_args); in _PyErr_WriteUnraisableMsg()
1523 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()
/external/python/cpython3/Lib/test/
Dtest_sys.py1095 hook_args = None
1098 nonlocal hook_args
1099 hook_args = args
1107 self.assertEqual(getattr(hook_args, attr),
1109 (hook_args, expected))
1113 hook_args = None
Dtest_threading.py1470 def hook(hook_args): argument
1472 args = hook_args