summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-09-01 02:47:25 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-09-01 02:47:25 (GMT)
commitb709df381034b6055f03644a8f2eb35cfc6cb411 (patch)
tree55a6c86396fefc64a68fef9a8621500c868320c4 /Include
parentb9ce5ada37f271cd2e9ec67f86a82a166f1e1296 (diff)
downloadcpython-b709df381034b6055f03644a8f2eb35cfc6cb411.zip
cpython-b709df381034b6055f03644a8f2eb35cfc6cb411.tar.gz
cpython-b709df381034b6055f03644a8f2eb35cfc6cb411.tar.bz2
refactor __del__ exception handler into PyErr_WriteUnraisable
add sanity check to gc: if an exception occurs during GC, call PyErr_WriteUnraisable and then call Py_FatalEror.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyerrors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index 6e60353..311e258 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -92,6 +92,7 @@ extern DL_IMPORT(void) _PyErr_BadInternalCall(char *filename, int lineno);
/* Function to create a new exception */
DL_IMPORT(PyObject *) PyErr_NewException(char *name, PyObject *base,
PyObject *dict);
+extern DL_IMPORT(void) PyErr_WriteUnraisable(PyObject *);
/* In sigcheck.c or signalmodule.c */
extern DL_IMPORT(int) PyErr_CheckSignals(void);