mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Fix misleading mentions of tp_size in comments (GH-9093)
Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
This commit is contained in:
parent
d545869d08
commit
0e0bc4e221
15 changed files with 21 additions and 21 deletions
|
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
@ -790,7 +790,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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue