mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -226,7 +226,7 @@ static PyMethodDef lock_methods[] = {
|
|||
static PyTypeObject Locktype = {
|
||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||
"_thread.lock", /*tp_name*/
|
||||
sizeof(lockobject), /*tp_size*/
|
||||
sizeof(lockobject), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
/* methods */
|
||||
(destructor)lock_dealloc, /*tp_dealloc*/
|
||||
|
@ -487,7 +487,7 @@ static PyMethodDef rlock_methods[] = {
|
|||
static PyTypeObject RLocktype = {
|
||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||
"_thread.RLock", /*tp_name*/
|
||||
sizeof(rlockobject), /*tp_size*/
|
||||
sizeof(rlockobject), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
/* methods */
|
||||
(destructor)rlock_dealloc, /*tp_dealloc*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue