Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Derrors.c1467 PyObject *hook_args = make_unraisable_hook_args( in _PyErr_WriteUnraisableMsg() local
1469 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()
/external/python/cpython3/Lib/test/
Dtest_sys.py1017 hook_args = None
1020 nonlocal hook_args
1021 hook_args = args
1029 self.assertEqual(getattr(hook_args, attr),
1031 (hook_args, expected))
1035 hook_args = None
Dtest_threading.py1294 def hook(hook_args): argument
1296 args = hook_args