mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
|
|
@ -68,7 +68,7 @@ PyDoc_STRVAR(abc_data_doc,
|
|||
static PyTypeObject _abc_data_type = {
|
||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||
"_abc_data", /*tp_name*/
|
||||
sizeof(_abc_data), /*tp_size*/
|
||||
sizeof(_abc_data), /*tp_basicsize*/
|
||||
.tp_dealloc = (destructor)abc_data_dealloc,
|
||||
.tp_flags = Py_TPFLAGS_DEFAULT,
|
||||
.tp_alloc = PyType_GenericAlloc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue