summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-12 02:43:00 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-12 02:43:00 (GMT)
commit6189b89cc55969c4252a5233ecd8e815baf8d421 (patch)
tree3e270a90f41a6a8f5147fbf3b7a5244d61482a4b /Objects
parentfec4eb1be1bb193ab3db0645a2c084c34868401c (diff)
downloadcpython-6189b89cc55969c4252a5233ecd8e815baf8d421.zip
cpython-6189b89cc55969c4252a5233ecd8e815baf8d421.tar.gz
cpython-6189b89cc55969c4252a5233ecd8e815baf8d421.tar.bz2
PyObject_GC_Del and PyObject_Del can now be used as a function
designators. Remove PyMalloc_New.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index b720ae5..ffc0579 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -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 *