]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-131181: Assert that PyObject_stgdict isn't NULL for PyCData (#131188)
authorAlexandra <55951388+dyupina@users.noreply.github.com>
Thu, 13 Mar 2025 15:06:39 +0000 (18:06 +0300)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 15:06:39 +0000 (15:06 +0000)
commitba363894bb70556dd7a72e724808bc37d5705f59
treedc15f97438a0efd9c92347129d414e23d91637e5
parent969631aec9b9de7cf3ade488beb0b315e236ea8e
[3.12] gh-131181: Assert that PyObject_stgdict isn't NULL for PyCData (#131188)

PyCData types have stgdict, so `PyObject_stgdict` can not return NULL.
Add an assert to make this clear.
Modules/_ctypes/_ctypes.c