]> granicus.if.org Git - python/commitdiff
PyObject_GC_Del and PyObject_Del can now be used as a function
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 12 Apr 2002 02:43:00 +0000 (02:43 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 12 Apr 2002 02:43:00 +0000 (02:43 +0000)
designators.

Remove PyMalloc_New.

Objects/dictobject.c

index b720ae5b736f78853fb08fdff40a9753e77d8e47..ffc057933eb69fe7b0519d1430980d30c1a4d01e 100644 (file)
@@ -1828,7 +1828,7 @@ PyTypeObject PyDict_Type = {
        (initproc)dict_init,                    /* tp_init */
        PyType_GenericAlloc,                    /* tp_alloc */
        dict_new,                               /* tp_new */
-       _PyObject_GC_Del,                       /* tp_free */
+       PyObject_GC_Del,                        /* tp_free */
 };
 
 /* For backward compatibility with old dictionary interface */
@@ -1888,7 +1888,7 @@ static PyObject *
 dictiter_new(dictobject *dict, binaryfunc select)
 {
        dictiterobject *di;
-       di = PyMalloc_New(dictiterobject, &PyDictIter_Type);
+       di = PyObject_New(dictiterobject, &PyDictIter_Type);
        if (di == NULL)
                return NULL;
        Py_INCREF(dict);
@@ -1903,7 +1903,7 @@ static void
 dictiter_dealloc(dictiterobject *di)
 {
        Py_DECREF(di->di_dict);
-       PyMalloc_Del(di);
+       PyObject_Del(di);
 }
 
 static PyObject *