mirror of
https://github.com/python/cpython
synced 2026-09-29 08:45:29 +03:00
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
This commit is contained in:
parent
fd1e0e93b1
commit
53d378c812
1 changed files with 3 additions and 3 deletions
|
|
@ -369,11 +369,11 @@ assign_version_tag(PyTypeObject *type)
|
|||
static PyMemberDef type_members[] = {
|
||||
{"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY},
|
||||
{"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
|
||||
{"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
|
||||
{"__weakrefoffset__", T_LONG,
|
||||
{"__flags__", T_ULONG, offsetof(PyTypeObject, tp_flags), READONLY},
|
||||
{"__weakrefoffset__", T_PYSSIZET,
|
||||
offsetof(PyTypeObject, tp_weaklistoffset), READONLY},
|
||||
{"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
|
||||
{"__dictoffset__", T_LONG,
|
||||
{"__dictoffset__", T_PYSSIZET,
|
||||
offsetof(PyTypeObject, tp_dictoffset), READONLY},
|
||||
{"__mro__", T_OBJECT, offsetof(PyTypeObject, tp_mro), READONLY},
|
||||
{0}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue