mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Remove _PyObject_Del
This commit is contained in:
parent
666bb419cb
commit
30d1c51ac9
8 changed files with 7 additions and 17 deletions
|
@ -3302,7 +3302,7 @@ inherit_slots(PyTypeObject *type, PyTypeObject *base)
|
|||
}
|
||||
else if ((type->tp_flags & Py_TPFLAGS_HAVE_GC) &&
|
||||
type->tp_free == NULL &&
|
||||
base->tp_free == _PyObject_Del) {
|
||||
base->tp_free == PyObject_Free) {
|
||||
/* A bit of magic to plug in the correct default
|
||||
* tp_free function when a derived class adds gc,
|
||||
* didn't define tp_free, and the base uses the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue