diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-21 21:04:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 21:04:01 (GMT) |
commit | 364ed9409269fb321dc4eafdea677c09a4bc0d8d (patch) | |
tree | f67c9f964a6641d5979c8991d11bfe365f499811 /Doc | |
parent | 8a4e519e7822d17ce062f55ba68e13bfeaf450de (diff) | |
download | cpython-364ed9409269fb321dc4eafdea677c09a4bc0d8d.zip cpython-364ed9409269fb321dc4eafdea677c09a4bc0d8d.tar.gz cpython-364ed9409269fb321dc4eafdea677c09a4bc0d8d.tar.bz2 |
gh-89373: _Py_Dealloc() checks tp_dealloc exception (#32357)
If Python is built in debug mode, _Py_Dealloc() now ensures that the
tp_dealloc function leaves the current exception unchanged.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/using/configure.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index 2e632d8..e7efd2b 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -288,6 +288,7 @@ Effects of a debug build: to detect usage of uninitialized objects. * Ensure that functions which can clear or replace the current exception are not called with an exception raised. + * Check that deallocator functions don't change the current exception. * The garbage collector (:func:`gc.collect` function) runs some basic checks on objects consistency. * The :c:macro:`Py_SAFE_DOWNCAST()` macro checks for integer underflow and |