mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
bpo-38140: Make dict and weakref offsets opaque for C heap types (#16076)
* Make dict and weakref offsets opaque for C heap types * Add news
This commit is contained in:
parent
079931d122
commit
3368f3c6ae
8 changed files with 188 additions and 8 deletions
|
|
@ -2024,7 +2024,7 @@ static struct PyMethodDef s_methods[] = {
|
|||
};
|
||||
|
||||
static PyMemberDef s_members[] = {
|
||||
{"__weaklistoffset__", T_NONE, offsetof(PyStructObject, weakreflist), READONLY},
|
||||
{"__weaklistoffset__", T_PYSSIZET, offsetof(PyStructObject, weakreflist), READONLY},
|
||||
{NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue