Mercurial > cpython-lru_cache-weakref
diff Objects/rangeobject.c @ 22446:d5aad6c581c9 legacy-trunk
Use pymalloc if it's enabled.
| author | Neil Schemenauer <nascheme@enme.ucalgary.ca> |
|---|---|
| date | Fri, 22 Mar 2002 15:33:15 +0000 |
| parents | 070d392042e3 |
| children | a9e4024d8a37 |
line wrap: on
line diff
--- a/Objects/rangeobject.c Fri Mar 22 15:28:30 2002 +0000 +++ b/Objects/rangeobject.c Fri Mar 22 15:33:15 2002 +0000 @@ -60,7 +60,7 @@ PyRange_New(long start, long len, long step, int reps) { long totlen = -1; - rangeobject *obj = PyObject_NEW(rangeobject, &PyRange_Type); + rangeobject *obj = PyMalloc_New(rangeobject, &PyRange_Type); if (obj == NULL) return NULL; @@ -104,7 +104,7 @@ static void range_dealloc(rangeobject *r) { - PyObject_DEL(r); + PyMalloc_Del(r); } static PyObject *
