mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
PyObject_GC_Del can now be used as a function designator.
This commit is contained in:
parent
aa769ae468
commit
99b5d28467
3 changed files with 3 additions and 3 deletions
|
|
@ -1127,5 +1127,5 @@ PyTypeObject PyProperty_Type = {
|
||||||
property_init, /* tp_init */
|
property_init, /* tp_init */
|
||||||
PyType_GenericAlloc, /* tp_alloc */
|
PyType_GenericAlloc, /* tp_alloc */
|
||||||
PyType_GenericNew, /* tp_new */
|
PyType_GenericNew, /* tp_new */
|
||||||
_PyObject_GC_Del, /* tp_free */
|
PyObject_GC_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1714,7 +1714,7 @@ PyTypeObject PyList_Type = {
|
||||||
(initproc)list_init, /* tp_init */
|
(initproc)list_init, /* tp_init */
|
||||||
PyType_GenericAlloc, /* tp_alloc */
|
PyType_GenericAlloc, /* tp_alloc */
|
||||||
PyType_GenericNew, /* tp_new */
|
PyType_GenericNew, /* tp_new */
|
||||||
_PyObject_GC_Del, /* tp_free */
|
PyObject_GC_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -237,5 +237,5 @@ PyTypeObject PyModule_Type = {
|
||||||
(initproc)module_init, /* tp_init */
|
(initproc)module_init, /* tp_init */
|
||||||
PyType_GenericAlloc, /* tp_alloc */
|
PyType_GenericAlloc, /* tp_alloc */
|
||||||
PyType_GenericNew, /* tp_new */
|
PyType_GenericNew, /* tp_new */
|
||||||
_PyObject_GC_Del, /* tp_free */
|
PyObject_GC_Del, /* tp_free */
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue