diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-10 10:22:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 10:22:55 -0700 |
commit | 4d5d219a7ae1351e6f6e7c1c9845a499927d1219 (patch) | |
tree | 5a44c65ba956ce68b46b778984b9b16b74a2873b /Objects/moduleobject.c | |
parent | c0d63bf73b35df374e6e66c08b0e297fb828d744 (diff) | |
download | cpython-git-4d5d219a7ae1351e6f6e7c1c9845a499927d1219.tar.gz |
[3.7] Fix misleading mentions of tp_size in comments. (GH-9136)
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize..
(cherry picked from commit 0e0bc4e221f592f305d335faf5f8046484eb9238)
Co-authored-by: Peter Eisentraut <peter@eisentraut.org>
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r-- | Objects/moduleobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 8fb368e414..c4bf081412 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c @@ -35,7 +35,7 @@ bad_traverse_test(PyObject *self, void *arg) { PyTypeObject PyModuleDef_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "moduledef", /* tp_name */ - sizeof(struct PyModuleDef), /* tp_size */ + sizeof(struct PyModuleDef), /* tp_basicsize */ 0, /* tp_itemsize */ }; @@ -789,7 +789,7 @@ static PyMethodDef module_methods[] = { PyTypeObject PyModule_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "module", /* tp_name */ - sizeof(PyModuleObject), /* tp_size */ + sizeof(PyModuleObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)module_dealloc, /* tp_dealloc */ 0, /* tp_print */ |