diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-27 06:57:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-27 06:57:14 (GMT) |
commit | 71c52e3048dd07567f0c690eab4e5d57be66f534 (patch) | |
tree | 7f3a063d2d3edb324d7d00bf13a66ddad689d22e /Python/clinic | |
parent | 2f0bfd27a5e3a9a7cbeb2ddd45ce50c3d4bdb4e9 (diff) | |
download | cpython-71c52e3048dd07567f0c690eab4e5d57be66f534.zip cpython-71c52e3048dd07567f0c690eab4e5d57be66f534.tar.gz cpython-71c52e3048dd07567f0c690eab4e5d57be66f534.tar.bz2 |
bpo-36829: Add _PyErr_WriteUnraisableMsg() (GH-13488)
* sys.unraisablehook: add 'err_msg' field to UnraisableHookArgs.
* Use _PyErr_WriteUnraisableMsg() in _ctypes _DictRemover_call()
and gc delete_garbage().
Diffstat (limited to 'Python/clinic')
-rw-r--r-- | Python/clinic/sysmodule.c.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h index 2a4ec72..5df8af1 100644 --- a/Python/clinic/sysmodule.c.h +++ b/Python/clinic/sysmodule.c.h @@ -106,9 +106,10 @@ PyDoc_STRVAR(sys_unraisablehook__doc__, "The unraisable argument has the following attributes:\n" "\n" "* exc_type: Exception type.\n" -"* exc_value: Exception value.\n" -"* exc_tb: Exception traceback, can be None.\n" -"* obj: Object causing the exception, can be None."); +"* exc_value: Exception value, can be None.\n" +"* exc_traceback: Exception traceback, can be None.\n" +"* err_msg: Error message, can be None.\n" +"* object: Object causing the exception, can be None."); #define SYS_UNRAISABLEHOOK_METHODDEF \ {"unraisablehook", (PyCFunction)sys_unraisablehook, METH_O, sys_unraisablehook__doc__}, @@ -1108,4 +1109,4 @@ sys_getandroidapilevel(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef SYS_GETANDROIDAPILEVEL_METHODDEF #define SYS_GETANDROIDAPILEVEL_METHODDEF #endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */ -/*[clinic end generated code: output=3c32bc91ec659509 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=03da2eb03135d9f2 input=a9049054013a1b77]*/ |