mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Replace PyObject_Del with PyObject_Free (#122453)
PyObject_Del() is just a alias to PyObject_Free() kept for backward compatibility. Use directly PyObject_Free() instead.
This commit is contained in:
parent
88030861e2
commit
fda6bd842a
13 changed files with 18 additions and 18 deletions
|
@ -289,7 +289,7 @@ static PyTypeObject _HashInheritanceTester_Type = {
|
|||
"hashinheritancetester", /* Name of this type */
|
||||
sizeof(PyObject), /* Basic object size */
|
||||
0, /* Item size for varobject */
|
||||
(destructor)PyObject_Del, /* tp_dealloc */
|
||||
(destructor)PyObject_Free, /* tp_dealloc */
|
||||
0, /* tp_vectorcall_offset */
|
||||
0, /* tp_getattr */
|
||||
0, /* tp_setattr */
|
||||
|
@ -3587,7 +3587,7 @@ static PyTypeObject matmulType = {
|
|||
0,
|
||||
0,
|
||||
PyType_GenericNew, /* tp_new */
|
||||
PyObject_Del, /* tp_free */
|
||||
PyObject_Free, /* tp_free */
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
@ -3699,7 +3699,7 @@ static PyTypeObject awaitType = {
|
|||
0,
|
||||
0,
|
||||
awaitObject_new, /* tp_new */
|
||||
PyObject_Del, /* tp_free */
|
||||
PyObject_Free, /* tp_free */
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue