mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
Some style nits. Also clarify in the docstrings what __sizeof__ does.
This commit is contained in:
parent
4f2c998ca9
commit
7a6de8b0f4
7 changed files with 18 additions and 18 deletions
|
@ -664,9 +664,9 @@ sys_getsizeof(PyObject *self, PyObject *args)
|
|||
return PyObject_CallFunctionObjArgs(method, args, NULL);
|
||||
}
|
||||
/* Instance of old-style classes */
|
||||
else if(PyInstance_Check(args))
|
||||
else if (PyInstance_Check(args))
|
||||
return PyInt_FromSsize_t(PyInstance_Type.tp_basicsize);
|
||||
/* Old-style class */
|
||||
/* Old-style classes */
|
||||
else if (PyClass_Check(args))
|
||||
return PyInt_FromSsize_t(PyClass_Type.tp_basicsize);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue