]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91321: Fix _PyObject_EXTRA_INIT for C++ (#92396)
authorVictor Stinner <vstinner@python.org>
Fri, 6 May 2022 12:40:08 +0000 (14:40 +0200)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 12:40:08 +0000 (13:40 +0100)
commitc33d67c4506d96a02c6ace382c38e2fb7a614843
treec9082448838b57e1030578c22ee6a811efa5e20e
parent5fbaf80057fb9f1583b7bd1f840e7d2ba0cf27cb
gh-91321: Fix _PyObject_EXTRA_INIT for C++ (#92396)

In C++, the _PyObject_EXTRA_INIT macro now uses nullptr, rather than
0, to initialize the _ob_next and _ob_prev members of the PyObject
structure.

Fix test_cppext failure when Python is built with
./configure --with-trace-refs.
Include/object.h